Hello Twitch devs.
I have been looking through the documentation, for any reference towards refresh tokens, that are received upon successful authorization, though i can find nothing.
So i might misunderstand the flow of this, so please correct me if i am wrong.
- Redirect user to twitch authorization
- Get code from callback.
- Use code to get both token + refresh token.
- Store the refresh token, as the normal token has a short lifespan.
So, let’s say the user logs out for a few days, then comes back to my site, how would then the procedure be to get a new token? I thought the refresh token was for this use, or am i misunderstanding something? As there is no reference to this, while other Oauth API’s i have worked with, used a refresh token grant_type.
Any help would be greatly appreciated.