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.
When using Twitch API OAuth 2.0 authorization code flow, I get from
https://api.twitch.tv/kraken/oauth2/authorizethe following token:{ "access_token": "xxxxxxxx", "refresh_token": "yyyyyyyyyy", "scope": ["user_read"], "expires_in": 13293 }that is invalid, because the
token_typefield is missing. According to OAuth 2.0 RFC https://tools.ietf.org/html/rfc6749#section-5.1, the thetoken_typefield is required.