Blog ·

Google login works on your preview link. Does it work on your real domain?

Here is a quiet way AI-built apps break the day you connect a custom domain: "Sign in with Google" sends people to an error page, or back to your old preview address.

The cause is usually redirect settings. Google and your auth provider (Supabase, Clerk, Firebase and others) only send users back to addresses you have listed. Your AI tool listed localhost and the preview link, not yourapp.com.

Check this after any domain change:

  1. In your auth provider, set the Site URL to your real domain and add it to the allowed redirect URLs.
  2. In Google Cloud, add your domain's callback URL to the OAuth client.
  3. Open a private window on your real domain and sign in with a fresh Google account.

Free check of your sign-up: https://flowcanary.app

Run the free checker