I've already seen
Why Does OAuth v2 Have Both Access and Refresh Tokens?
https://auth0.com/blog/refresh-tokens-what-are-they-and-when-to-use-them/
As per my understanding, this is how OAuth v2 works:
1) user sends his credentials to the server which validates it and returns an access_token
and a refresh_token
2) user sends this acsess_token
along with further requests to identify himself
3) when the access_token
expires, the user sends another request to the server with refresh_token
and other required parameters asking for a new access_token
and refresh_token
Here's my question:
What's the need of a separate refresh_token
? Why not send the old access_token
( which is about to be expired anyway ), for a new one ??
What's the additional advantage of using a refresh_token
?