How can I increase the lifetime of a user access token?

No. Regualr user tokens live for 4 hours

Thats the “correct” work flow.

You use the refresh token to get a new access token.

Cli is handy for testing with.

But for your “true” application you would seed you application with a user and refresh token
And it will handle refreshing on it’s own

It might be more suitable to use an implicit token for your application which is good for 60 days and just give your application a new token each time you start your stream.

And depending on what data you are consuming or using you might not need to refresh. (EventSub websockets will live beyond the death of the token for example)

1 Like