Access Tokens vs Refresh Tokens, Nodejs

·

1 min read

Difference is that AccessToken is used for a short duration for e.g: while logging in however RefreshToken is used for a longer duration like staying logged in. Refresh Tokens are stored in database and can require access tokens to regenerate refresh tokens and store themselves again in database to ensure staying logged in.

https://www.youtube.com/watch?v=L2_gIrDxCes&list=PLu71SKxNbfoBGh_8p_NS-ZAh6v7HhYqHW&index=17