Sign Up
Loading...

Securing endpoints with long‑lived tokens / API keys

Asked by Joe on June 19, 2025

How can I secure Twidget endpoints with a long‑lived token or API key? Is there a way to issue tokens that last longer than the default?


Answered by Twidget

Follow the authentication guides: https://www.youtube.com/watch?v=kfbS6gJqRa4 and https://www.youtube.com/watch?v=vRtlTfvI22I

By default tokens last 24 hours (86,400 seconds). You can increase the token expiration by editing the command that generates the token in the endpoint — the expiration is specified in seconds.

Related Questions