I recently stumbled upon this article which recommends using two tokens for authentication.
Once the user is logged-in (or registered), the client receives an access token and a refresh token, and gets transitioned to the protected scene.
The access token is a credential valid for 1 hour, used to access the protected content from the server API. When it expires, the client uses the refresh token to obtain a new access token. The refresh token is valid for 90 days [...]
I'm guessing using two tokens is a security measure, but I can't imagine how it makes the system any safer. Wouldn't it be equally secure if there was only one token, valid for 90 days, which is used as the access token? What are the benefits of using another token?