mikenicholson / passport-jwt

Passport authentication using JSON Web Tokens
MIT License
1.96k stars 213 forks source link

Refresh_token #223

Closed adamasantares closed 2 years ago

adamasantares commented 3 years ago

I don't see any information about refresh_token, I see access_token only. How should I get a new access token after it expired?

shanutthankachan commented 3 years ago

i think it will help you https://www.izertis.com/en/-/refresh-token-with-jwt-authentication-in-node-js

qrhfz commented 2 years ago

@shanutthankachan the refresh token list is stateful. it kinda misses the purpose of jwt. or am i missing something?

mikenicholson commented 2 years ago

This is out of the scope of this library. Passport-jwt only decodes and validates access tokens. It does not handle refresh tokens.