Created
October 18, 2020 12:42
-
-
Save nosvalds/c75745591cae128d2f8b3e608ee90956 to your computer and use it in GitHub Desktop.
Express route definitions for password workflows
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
// Auth password routes | |
app.post(`/auth/forgot-password`, AuthController.forgotPassword); | |
app.post(`/auth/reset-password`, AuthController.resetPassword); | |
app.post(`/auth/update-password`, passport.authenticate('jwt', { session: false }), AuthController.updatePassword) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment