mikenicholson / passport-jwt

Passport authentication using JSON Web Tokens
MIT License
1.97k stars 214 forks source link

refresh expired tokens? #132

Closed RodrigoAngeloValentini closed 6 years ago

RodrigoAngeloValentini commented 7 years ago

How I do for refresh a expired token?

michie1 commented 7 years ago

It's not possible to refresh an expired token. You need to create a new one.

pumano commented 6 years ago

It's possible to implement different strategy aka JwtRefreshStrategy with same data as JwtStrategy, but with different name? In JwtStrategy name is 'jwt'. I need also one 'jwt-refresh' name. Can you add please method for set name to strategy?

mikenicholson commented 6 years ago

Closing as this is a general question about JWT's with very little to do about the passport-jwt module. Questions like this are more suited for forums like StackOverflow.