DEV Community

Discussion on: JWT Authentication with Access Tokens & Refresh Tokens In Node JS

Collapse
 
arya011tp profile image
Arya Aniket

what is the purpure of refresh Token, when you have to have only accessToken and you store refresh token

Collapse
 
q_d_cd009cfa5ff99c45f714b profile image
Q D

Refresh token is used to obtain a new access token (short lived) when it is expired instead of using user/password. Refresh token has a longer life time.