Difference between Access Token and Refresh Token

In the Journey of becoming a full stack developer, Today I learned about one of the new and important concepts of authentication. Let me explain the concepts one by one

Access Token

As the name suggest that, it is used to access the resource from server by using the token. But this token had a shorter time validy which can range from 15 minutes to 1 day. These access token can't be used after their validity time expired.

Refresh Token

As the name suggests that, refresh token is used to refresh something. Refresh token has longer validity time than Access token. It can range from 5 days to months or year. This refresh token is used to refresh the Access token as access token will be expired after sometime. Refresh token provides extra layer of validation for Authentication.

A big thank you to Hitesh Sir who is provding quality content on YouTube👏