The short answer

If Bolt password-reset or confirmation links open localhost, change the Site URL from Bolt’s default localhost:3000 to your live domain and add every domain to the redirect allow list. For Google sign-in, publish your Google OAuth app, because Testing mode caps sign-in at 100 users.

Why it happens

What’s actually going on

By default, Bolt projects use localhost:3000 as the Site URL. When a sign-in link’s redirect URL isn’t on the redirect allow list, authentication falls back to the Site URL, so reset and confirmation links point at a machine your users can’t reach. Bolt’s docs say that when reset links don’t work, the cause is usually the Site URL or the allow list.

Google sign-in uses an OAuth app you create in Google Cloud. Google sets new OAuth apps to Testing, which limits sign-in to up to 100 users, and your app’s name and logo don’t appear until you publish your branding.

Already done for you

What Bolt already handles

Email sign-in settings

Allow or block email sign-up, require confirmation, confirm email changes from the old address, and prevent leaked passwords.

Email templates

Edit and preview the confirmation and reset emails, with variables such as the confirmation link and a 6-digit code.

Advanced settings

Site URL and the redirect URL allow list.

Google sign-in

Paste your Google client ID and secret into the project’s authentication settings.

Fix it yourself

Step by step

In this order. Most apps get most of the way with these alone.

  1. Set the Site URL to your live address

    In your database’s authentication settings, replace localhost:3000 with your published address or custom domain.

  2. Add every redirect URL to the allow list

    List each domain you use, so sign-in links don’t fall back to the Site URL.

  3. Require email confirmation

    So people can’t sign up with addresses they don’t own. Keep leaked-password prevention on.

  4. Set up Google sign-in fully

    In Google Cloud, add the authorized JavaScript origins and the redirect URI Bolt shows, then paste the client ID and secret into Bolt.

  5. Publish your Google OAuth app

    Move it out of Testing, which caps sign-in at 100 users, and publish your branding so customers see your app’s name.

  6. Test every email

    Preview the confirmation and reset templates and click each link from a real inbox.

Where it still goes wrong

  • Changing domains later means updating the Site URL, the allow list and Google’s settings again.
  • Apps that read Google data such as Drive, Gmail or Calendar need Google’s scope verification.
  • You may need several origins and redirect URIs if the app runs on more than one domain.

When to bring in a developer

If the steps above turn up more than you have time for, or the app already has paying users, I take Bolt apps to production: login and access rules, database and backups, payments, security, SEO and deployment.

App rescue: From $1,000, fixed price, scoped in writing before any work starts.

More in app rescue, or hire a Bolt developer.

Questions

Common questions

Why do Bolt password-reset links go to localhost?

The Site URL still has Bolt’s default, localhost:3000, or the link’s redirect URL isn’t on the allow list. Set both to your live domain.

Why can only some people sign in with Google?

Your Google OAuth app is probably still in Testing, which limits sign-in to up to 100 users. Publish it in Google Cloud.

Can I change Bolt’s sign-in emails?

Yes. Edit and preview the templates in the authentication settings, or reset them all to the defaults.

Want your Bolt app production-ready?

Send me the app and what’s worrying you. You get a written scope with a fixed price before any work starts.

Book a 30-minute call