Skip to content

Instantly share code, notes, and snippets.

@nosvalds
Created October 18, 2020 12:42
Show Gist options
  • Save nosvalds/c75745591cae128d2f8b3e608ee90956 to your computer and use it in GitHub Desktop.
Save nosvalds/c75745591cae128d2f8b3e608ee90956 to your computer and use it in GitHub Desktop.
Express route definitions for password workflows
// 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