DEV Community

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

Collapse
 
uic19bca1130 profile image
Ankush

{
"error": "invalid_grant",
"error_description": "The specified token is not a refresh token.",
"error_uri": "documentation.openiddict.com/error..."
}
give me solution of this error

Collapse
 
luisapplivity profile image
LuisApplivity

Hi Ankush,

The solution in your case is most likely the same one that was required by most here who had the same issue: When you copy+paste the Refresh Token (or any token) from the Postman user interface, it also adds an extra paragraph character in the end of your token. So when you paste your token, press the Backspace key once to delete it.

If that does not work (unlikely), then your token is either the wrong one like Oleg suggested, or it even expired, or what was pasted/written is simply something else entirely.

Collapse
 
olegtar profile image
Oleg

I suppose you send an access token instead of a refresh token
you need enable "offline_access" scope to get refresh token