Only let Supabase login links go back to your own site
When someone clicks a Supabase magic link, a sign-up confirmation or a password reset, Supabase sends them to a redirect address. Your project keeps a list of addresses it's allowed to use, and while building, that list often ends up with localhost, old preview links or broad wildcards.
A loose list can let a crafted link send your users, with their login token, to a page you don't control.
In the Supabase dashboard, open Authentication, then URL Configuration. Set Site URL to your real domain, and keep only exact addresses you actually use under Redirect URLs. Remove localhost and wildcards from your live project; use a separate project for testing.
Want an outside check of your live app? Run the free scan at leakyvibe.com/?demo=1&ref=blog-tighten-supabase-auth-redirect-urls. It takes about 15 seconds.