Forgot Password

How to set up forgot password flow using Authverse.

Authverse makes it easy for you to add "Forgot Password" flow with just one command.

Run this command

npx authverse@latest forget

This command will:

  • Auto-inject reset password logic
  • Auto-create email handler
  • Auto-setup API route
  • Add required environment variables
  • Add resend email template

Add Required Environment Variables

After the command completes, add these variables to your .env file:

  • RESEND_API_KEY=
  • EMAIL_SENDER_NAME=
  • EMAIL_SENDER_ADDRESS=