Skip to content

Forgot Password Flow uses in house simple as heck server-side first forgot password flow to help users easily reset their password.

You can configure it in the src/pages/api/sign directory.
  1. Update the .env file or hosting provider’s environment variable to have the necessary variables for Upstash:
# .env

  1. To simply allow users reset their password, import the <ForgotPassword /> component in your Astro page.
// File: src/pages/forgot-password.astro

import ForgotPasswordComponent from '@/components/Forgot-Password.astro'

<html lang="en">
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width" />
    <ForgotPasswordComponent />