Grant_Type / Client Credentials

The more I read on this, the more I getting confused. In the “OAuth client credentials flow” section of the “Getting Tokens: OAuth | Twitch Developers” it references a “grant type” that “must be client_credentials”. Where do I get that? I have the client secret and client ID, but that must be different from the client_credentials. Where do I get the later.

Thank you

The grant type for generating App Access tokens, is literally client_credentials. That’s the string that must be in the url, you don’t need to replace it with anything.

The docs example show how it should look POST https://id.twitch.tv/oauth2/token?client_id=uo6dggojyb8d6soh92zknwmi5ej1q2&client_secret=nyo51xcdrerl8z9m56w9w6wg&grant_type=client_credentials

The client_id and client_secret are from your app on the TwitchDev console, but the grant_type is simply the string client_credentials

Thank you. I guess I read too much into it and assumed there was another credential I needed. Your answer resolved the issue.

Regards

1 Like