I need to know if it is possible, apart from obtaining the userID, to obtain data such as userName, email, followers, etc. within the extension, since I need said data to be able to use resources from a private api.
would this be possible? And if possible, how could I do it?
I have read the documentation several times but I can’t find anything about it.
the token that I have managed to obtain only has a scope to obtain the userid, the scope of the extension could be changed to make this possible
For public data use an app access token against the API using the userID extracted from the JWT
If you need the viewers email address. Ask for it with a text field.
You don’t neccassrilly need to access/use their twitch registered email. And users would often prefer to give you (the extension) a different email to the one linked to their Twitch.
Then you don’t need to worry so much about oAuth schnanigans
I need data of Twitch because my extensión using bits and if flow of my proccess fail i need his data for refund free ticket for use extensión service.
get user Id with helix , get app acces token with https://id.twitch.tv/oauth2/token (i dont know if that show a login popo up) and with this result token i will try to get private data email?