Menu

Login broke after I added my custom domain (Supabase redirect URLs)
πŸ“°

Login broke after I added my custom domain (Supabase redirect URLs)

DEV Community: authenticationΒ·AppFirstAidΒ·about 4 hours ago
#xeQmaCey
#devtoauthentication#devto#dev#domain#supabase
Reading 0:00
15s threshold

Originally published on AppFirstAid .

Short answer: your login provider still thinks your app lives at the old address. In Supabase, go to Authentication β†’ URL Configuration, set the Site URL to your new domain and add it to Redirect URLs (for example https://yourdomain.com/** ). If your app asks to send people somewhere that isn't on that list, Supabase quietly sends them to the Site URL instead, which is often the old preview link or localhost.

Signs this is your problem

The confirmation or password-reset email opens the preview link, localhost , or a page that says the link is invalid.

Google sign-in finishes, then lands on the old address.

Everything works on the preview link but not on your real domain, or the reverse.

Fix it in Supabase

Open your project, then Authentication β†’ URL Configuration.

Set Site URL to the address customers use, like https://yourdomain.com .…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.