You built your app with Lovable, Bolt, Cursor or Replit, with Supabase handling accounts. A user forgets their password and asks for a reset email. The email arrives and the link works, but it drops them on your home page or straight into the dashboard. There is no box to type a new password. Next time they try to log in with their old password, it still fails, and they give up.
You may not notice, because you rarely reset your own password.
The short answer
When someone opens a Supabase password reset link, Supabase signs them in first, much like a one-time login link. Your app then has to show a page where they choose a new password and save it with supabase.auth.updateUser({ password }). If your app has no such page, or the reset email does not send people to it, they end up signed in with their old password unchanged.
Fix it
- Make a change password page. Add a page such as
/update-passwordwith a new password field and a save button. Supabase's docs say this page should only be usable by a signed-in user, and that it should callupdateUserwith the new password. After it saves, show a clear message and send the user on to your app or login page. - Point the reset email at that page. Where your app asks for the reset email, pass the full address of that page as
redirectTo, for examplesupabase.auth.resetPasswordForEmail(email, { redirectTo: 'https://yourapp.com/update-password' }). Use your live domain, not a preview address. - Allow that address in Supabase. Supabase's docs say the
redirectToaddress needs to be on the Redirect URLs list in your project's URL Configuration settings. Add the exact address of your change password page. While you are there, check the Site URL is your live site, nothttp://localhost:3000. Supabase uses the Site URL when noredirectTois given and calls it critical for password resets. - Show the form when the reset event fires. If your app is client-only, Supabase's JavaScript library reports a
PASSWORD_RECOVERYevent throughonAuthStateChangewhen a reset link is opened. Use it to show the change password form, rather than sending the user straight to the dashboard because they now look signed in. - Test it in a private window. Request a reset for a test account, open the link, set a new password, sign out, and log in with the new one.
Two things to know
- No email does not always mean an error. To stop people finding out which emails have accounts,
resetPasswordForEmailreturns without an error even when no account uses that address, and Supabase sends nothing. Test with an address you know has an account. - The built-in email service is only for trying things out. Supabase's docs say the default email service is limited to 2 emails an hour on a best-effort basis, and suggest your own email provider (custom SMTP) for real users. If reset emails stop arriving, see our guide to missing Supabase emails. If the link says it is invalid or has expired, see our guide to expired email links.
If your app renders on a server, Supabase's docs describe a different setup where the reset email template links to a /auth/confirm route that calls verifyOtp with type=recovery and then sends the user to the change password page. Follow Supabase's password guide for that version rather than mixing the two.
Paste this into your AI tool
> When a user opens a password reset link from my app, they get signed in but never see a form to set a new password. Please add a change password page on my live domain that calls supabase.auth.updateUser({ password }) and shows a success message, pass that page's full URL as redirectTo in resetPasswordForEmail, and show the form when onAuthStateChange reports PASSWORD_RECOVERY. Tell me the exact URL I need to add to Redirect URLs in Supabase URL Configuration, and check my Site URL is my live site. Do not turn off email confirmation, do not put any secret key in the browser, and do not change my login or sign-up flow.
Catch it before your users do
This kind of break is easy to miss because you rarely reset your own password. Scheduled testing from FlowCanary is launching by 30 November 2026. Once it is live, it will test the flows a new visitor can do in your app, such as sign-up and checkout, in a real browser on a schedule, with logged-in flows on Pro, and tell you in plain English when one breaks, with a fix prompt for Lovable, Bolt, Cursor or Replit. Until then, the free check works today: paste your live URL and it opens the page in a real browser and reports JavaScript errors, failed requests and blank pages.