DEV Community

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

Collapse
 
abdelrahmankamall profile image
Abdelrahman-kamall

same here , have u found the solution ?
one more thing i noticed when i try to refresh the token from the built in refresh in postman

Image description
i think it works

Image description

and if i used breakpoints and debugged it actually enters the action of the connect/token end point

although if i used inspect the request after this refresh produces this

Image description

meanwhile the post request for the refresh token doesn't enter the action while useing the debugger , but produces this in post man

Image description

i guess the request itself has something missing ?

Collapse
 
abdelrahmankamall profile image
Abdelrahman-kamall

it turned out to be that when i copy the refresh token from the stored token in postman to put it in my post methed it pastes it with an extra new line resulted from an extra /n or /r maybe ,, so after removing it it worked fine ,
also don't forget to update the used tokens (access and refresh) after calling the post method each time