Skip to content

Invalid OAuth 2.0 token #691

@rashtao

Description

@rashtao

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions