Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid OAuth 2.0 token #691

Open
rashtao opened this issue Apr 12, 2018 · 0 comments
Open

Invalid OAuth 2.0 token #691

rashtao opened this issue Apr 12, 2018 · 0 comments

Comments

@rashtao
Copy link

rashtao commented Apr 12, 2018

When using Twitch API OAuth 2.0 authorization code flow, I get from https://api.twitch.tv/kraken/oauth2/authorize the following token:

{
  "access_token": "xxxxxxxx",
  "refresh_token": "yyyyyyyyyy",
  "scope": ["user_read"],
  "expires_in": 13293
}

that is invalid, because the token_type field is missing. According to OAuth 2.0 RFC https://tools.ietf.org/html/rfc6749#section-5.1, the the token_type field is required.

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

No branches or pull requests

1 participant