vladwulf / nestjs-jwts

NestJs jwt tutorial using access and refresh tokens
376 stars 105 forks source link

add user check in validate method rtStrategy and atStrategy #8

Open geek-sajjad opened 2 years ago

geek-sajjad commented 2 years ago

Hi, add check user refresh token and user exist object in db to both of strategies validate methods.

this insure that if user deleted from the db , the accessToken is no longer be valid, and if user logouts , the accessToken is not longer be valid.