Problem is that it only get my username and not the others. I don’t why it’s because I’m the ower of the channel or the owner of the extension. If I’m the one using it, it works, but for others, it doesn’t.
Any Suggestion?
Your code gets the username of the user using the extension.
Theres no fault there that I can see
So in client side, get the client side viewer ID and using the client side helix token get the viewers name
So this looks correct
Edit: the other user/viewer has logged into the extension? Broadcasters are auto logged in. Viewers have to opt in to sharing their userID with the extension first
Ok now I can get the the viewerId but it only works if the viewer allow access in the extension settings.
Is there a way to request access directly in the extension instead that in the settings? So it’s the first thing the viewer does
is there a way to verify if the user has accepted to share their id?
I would like to permit the usage of the extension only if the viewer accept to share the id