Teekeks / pyTwitchAPI

A Python 3.7 compatible implementation of the Twitch API, EventSub, PubSub and Chat
https://pytwitchapi.dev
MIT License
256 stars 38 forks source link

Support for the UserInfo endpoint? #136

Closed jangxx closed 2 years ago

jangxx commented 2 years ago

Twitch exposes an endpoint which can be used to get information about an access token: https://dev.twitch.tv/docs/authentication/getting-tokens-oidc/#getting-claims-information-from-an-access-token

It's running on https://id.twitch.tv/oauth2/userinfo and I would like to use it in my app in order to check if the logged-in user has validated their email. Unfortunately this endpoint doesn't seem to be supported in this library. I could of course just call it myself with requests or something, but I feel like it would be nice if twitchAPI.oauth also had a method to call it with.