guanacone / fullstack_app

BSD Zero Clause License
0 stars 0 forks source link

Refresh token backend #31

Closed guanacone closed 3 years ago

guanacone commented 3 years ago

backend implementation for refreshing access-token.

Decided to only decode the provided JWT as its verified by the preceding passport middle ware. JWT is decoded to retrieve user._id and user.email. to be reencoded in new JWT.