hello, ive built an app where the user connects to me via twitch.
I redirect the refresh token to my server and got the refresh token and access token etc.
now is there a way i can get the user info using their refresh token or something?
meaning after the info has been redirected to the back, is there a way i can get the user info with it?
The refresh token no.
The access token yes
Call the validate endpoint or the users endpoint with the access token (omiiting an ID or login in the call)
but in both i need the user id no?
No
The validate endpoint takes a Access Token
Tells you if it’s valid and the user it’s for
The users endpoint if you omit the userID and Login will give you the user the token is for
This Twitch Implicit Auth Example is an implict auth example that will demonstrate how to get a user from a token
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.