Client Credential Flow

I did this :

POST https://id.twitch.tv/oauth2/token
    ?client_id=<your client ID>
    &client_secret=<your client secret>
    &grant_type=client_credentials

got this …


{‘access_token’: ,
‘expires_in’: 490000,
‘token_type’: ‘bearer’}


I was expecting a refresh token ? as in the documentation such as


{
“access_token”: “”,
“refresh_token”: “”,
“expires_in”: ,
“scope”: ["<your previously listed scope(s)>"],
“token_type”: “bearer”
}


what is happening ?
do i just get new tokens without refreshing when it expires?

(Note that app access tokens and ID tokens cannot be refreshed.)

It’s redundant to go through a refresh process for App tokens as it’s just a single HTTP request to get a new token in the first place, so when your current token expires just get a new one.

Thanks!
Am i reading the wrong set of documents??

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