DEV Community

Discussion on: Setting up an Authorization Server with OpenIddict - Part VI - Refresh tokens

Collapse
 
rezapouya profile image
Reza Pouya

this error is thrown for me

{
"error": "invalid_grant",
"error_description": "The specified token is not a refresh token.",
"error_uri": "https://documentation.openiddict.com/errors/ID2007"
}

what should i do to take refresh-token?

Collapse
 
rezapouya profile image
Reza Pouya

i mean , i just sigin in with client-id and client-secret and just take one token. this token should be acess token , then how i get refresh token ?

Collapse
 
rezapouya profile image
Reza Pouya

i found it , i just should add this to my access token request .

scope => api offline_access