Category: Supabase and databases

Supabase Auth: redirect URL not allowed on password reset

Read this guide in Polish

The reset password clicks to an address Auth does not accept.

How to identify the source of the problem

Check Site URL, Redirect URLs and redirectThis is sent by frontend.

Compare the result for the authorized and unauthorised user, project name and exact error code.

Repair steps

Add the exact secure application address to the permitted list, without wildcard for foreign domains.

How to Test Solution

Reset returns to the correct form and does not allow an open redirection.

Security and restrictions

Change permissions and scheme first on test data with backup. Do not put service role in your browser.