Created
March 11, 2021 18:26
-
-
Save rasikag/a8c7dc0a45e88e1c79e542153c8e15ee 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
const token = v4(); | |
await redis.set( | |
FORGET_PASSWORD_PREFIX + token, | |
user.id, | |
"ex", | |
1000 * 60 * 60 * 24 * 3 | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment