Category: Supabase and databases

Supabase: Password Recovery Opens Without a Session

Read this guide in Polish

Upon clicking the password change link, the page does not recognize recovery mode.

How to identify the source of the problem

Check the hash fragment or code in callback, depending on the flow used, and whether the link is consumed twice.

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

Repair steps

Support correct recovery or exchange code, then let Auth set the password.

How to Test Solution

The new password works, and the random URL without valid token does not open the change form.

Security and restrictions

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