On ACCESS TOKEN AND REFRESH TOKEN

On ACCESS TOKEN AND REFRESH TOKEN

Table of contents

No heading

No headings in the article.

SPECIAL THANS TO @hitesh Chaudhary sir
So in very basic terms access token is -> short lived
and refresh token is -> long term

Access token is given with each login and you can think of it as a key to your session login on that site

Refresh token is given alongside it but it’s expiry is relatively bigger than it’s former.

So let’s say your session expires then this refresh token will help you get log in without actually needing to take all details from you, this is major benefit

access tokens are used to gain access, while refresh tokens are used to obtain new access tokens: