Response not contains refresh token

According to article
https://dev.twitch.tv/docs/authentication/getting-tokens-oauth/#oauth-client-credentials-flow

Making request I should get reponse with refresh token.

I’m sending request

https://id.twitch.tv/oauth2/token?
client_id=xxxxxxxxxxxxxxxxxxx&
client_secret=xxxxxxxxxxxxxxxxxxxxxx&
grant_type=client_credentials&
scope=user:edit:broadcast

I get response:
{
“access_token”: “xxxxxxxxxxxxxxxxxxxxx”,
“expires_in”: 5310998,
“scope”: [
“user:edit:broadcast”
],
“token_type”: “bearer”
}

Why I didn’t get refresh token ?

Becuase you requested an “app access token”

Which

a) cannot have scopes on it as it doesn’t represent a user
b) is the wrong kind of key to request when asking for “user:edit:broadcast”
c) app access tokens cannot be renewed/refreshed

You read all of

And spilled over into

Which are two different auth methods

1 Like

Thank you

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.