Skip to content

Use Twitch’s V5 API when getting user’s information#1

Open
plackemacher wants to merge 1 commit into
Tim-Machine:masterfrom
plackemacher:use-v5
Open

Use Twitch’s V5 API when getting user’s information#1
plackemacher wants to merge 1 commit into
Tim-Machine:masterfrom
plackemacher:use-v5

Conversation

@plackemacher

Copy link
Copy Markdown

By adding the Accept: application/vnd.twitchtv.v5+json header when fetching the user's data, it will now hit Twitch's V5 API which provides a bit more informaton. In my case, email_verified is what I'm looking for. I've also added that field to the raw_info for easier accessibility.

One breaking change with this is that in a developer's AuthController module to handle Ueberauth authentications, auth.extra.raw_info.user["_id"] is now a binary instead of an integer since the V5 API returns _id as a string instead of an integer like in the V3 API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant