Created
March 16, 2021 18:02
-
-
Save rasikag/d78f21acd9abcca5a88cdbae65c19d0a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// in resolvers/user.ts file | |
// first get the key out | |
const key = FORGET_PASSWORD_PREFIX + token; | |
const userId = await redis.get(key); | |
// then delete the key | |
await redis.del(key); | |
req.session.userId = user.id; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment