Difference between access and refresh tokens.

·

1 min read

The major difference between them is that they’re used for mainly finding a particular user from database and also for logout and login sessions.

If you want to login to an existing account the server checks the access token and match it with its database it its present it will log you in otherwise display an error message.

Similarly when user want to log out the cookies must be removed before logging out so it matches the existing access token with refresh token and it matched it deletes it.