Login unsuccessful for ComfyJS.Init with twitch user and oauth code

For connecting to chat.

The token needs to open be valid when the bot/script connects to chat.

A regular refreshable user token is generally valid for four hours, then you can use the refresh token to automatically get a new token.

If you have an implicit token, that is generally valid for 60 days. But when the token dies you have to manually get a new token.

You can check current time left on a token with the validate endpoint

1 Like