You should use the Get Users endpoint https://dev.twitch.tv/docs/api/reference/#get-users
If you send a request to that endpoint without specifying an id or username it’ll return the details of the user associated with the access token.
You should use the Get Users endpoint https://dev.twitch.tv/docs/api/reference/#get-users
If you send a request to that endpoint without specifying an id or username it’ll return the details of the user associated with the access token.