Password reset
People forget passwords. Your app handles it with two built-in screens: Forgot password (/forgot-password), which emails a reset link, and Choose a new password (/reset-password), which the link opens. Signed-in users can also change their password at any time on /account.
Password reset
People forget passwords. Your app handles it with two built-in screens: Forgot password (/forgot-password), which emails a reset link, and Choose a new password (/reset-password), which the link opens. Signed-in users can also change their password at any time on /account.
When to use
- A customer or staff member cannot sign in and asks for help: point them to Forgot password? on the sign-in screen.
- You added a user without a password: they use Forgot password to set one.
How the forgot-password flow works
- On
/loginthe visitor clicks Forgot password? (shown when the Email & password method is enabled) and enters their email on/forgot-password. - The screen always answers "If an account exists, we emailed a reset link." — it never reveals whether the email is registered.
- If the account exists, an email titled Reset your … password (with your app's name) is sent with a Choose a new password button. The link is valid for 60 minutes and can be used once.
- The link opens
/reset-password?token=…. The visitor types a new password (at least 8 characters, letters mixed with numbers or symbols) and clicks Save password. - The password is replaced, the email address is marked as verified, every other session of that user is signed out, and the visitor is signed in and taken to the After sign-in page.
/login → Forgot password? → /forgot-password → email → /reset-password?token=… → signed in
With a custom Reset password page (Settings → General → System pages), the email link still points at /reset-password?token=… and the app redirects it to your page, keeping the token. See Customize sign-in, sign-up and password screens.
Requirements
- Authentication must be on.
- Email delivery must work for the app: a
RESEND_API_KEYsecret in Settings → Environment & secrets (or the platform's key). In local development, emails land in the dev outbox at/dev/outboxinstead of an inbox. - The link points at the app's own address (the hosted URL or your custom domain), so the visitor must open it in the same app.
Changing a password while signed in
On /account (open it from the user's name in the navigation) the Change password form asks for the current password and the new one. Users who never had a password (magic link or Google accounts) can set one without entering a current password. The User Profile component offers the same form inside your own pages when Allow password change is ticked.
Common mistakes
- Expired link. After 60 minutes, or after it has been used, the link shows "This link is invalid or has expired." Request a new one.
- No email arrives. Check email delivery for the environment the visitor is using (staging vs production), and that the address matches the account exactly.
- Expecting the builder to reset app-user passwords. The App users tab does not set passwords for existing users; the user resets it themselves. (You can set a password when adding a user.)
- Confusing builder and app passwords. Resetting your builder password does not affect app users.
Related
Advanced
Reset tokens are random, stored hashed, single-use and expire after 60 minutes (app_auth_tokens, kind reset). forgot is rate-limited to 5 requests per 10 minutes per IP. Endpoints: POST /api/runtime/:projectId/auth/forgot and …/auth/reset.