I am trying to get the “display_name” of the viewer that interacts with my extension
I read the documentation and found that I do that with the Twitch API https://dev.twitch.tv/docs/api/reference#get-users
But when making my requests it throws me the following error:
“message”: “Invalid OAuth token”
I understand that the following parameters are sent:
-id of the user that I want to read their information.
-The authorization with the token in Bearer format (generated with JWT)
All this I am sending and it does not respond to me, does anyone know what I can be doing wrong?
I leave my data here:
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9…