The short answer

Use Clerk Auth for customer-facing apps, with your own accounts and branding, and Replit Auth for prototypes and internal tools, which use Replit accounts. Test with two accounts, then sign in on the published URL; if it fails only there, check the production Clerk environment.

Why it happens

What’s actually going on

Replit has two built-in sign-in options, both set up by Agent. Replit Auth signs users in with their Replit accounts on a Replit-branded page, in a single environment. Clerk Auth gives your app its own user accounts and fully custom branding, with separate development and production environments. Replit suggests Replit Auth for prototypes and internal tools, and Clerk for branded, customer-facing products.

With Clerk, Agent wires the production credentials into the published app, so sign-in works on the public URL. If it fails only there, check that the production Clerk environment was set up.

Already done for you

What Replit already handles

Replit Auth

Zero-setup sign-in with Replit accounts, on a Replit-branded page.

Clerk Auth

Your app’s own accounts and branding, set up by Agent with no Clerk dashboard sign-up or keys to paste.

Per-user data

Agent can gate features behind sign-in and attach each record to the signed-in user.

Fix it yourself

Step by step

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

  1. Choose before launch

    Clerk for customer-facing or commercial apps; Replit Auth for prototypes and internal tools.

  2. Ask Agent to add it

    For example: “Add sign-in to my app. Use Clerk Auth.”

  3. Test with two accounts

    Sign in as two users in two windows and confirm each sees only their own data.

  4. Publish and sign in on the public URL

    Then sign in again on the published address, not just in Preview.

  5. Check the production environment

    If sign-in fails only when published, confirm Agent set up the production Clerk environment.

  6. Check access in your routes

    Every route that returns user data should check who is signed in.

Where it still goes wrong

  • You can start with one option and switch later, but moving users between systems is real work. Decide before launch.
  • Replit Auth users are Replit accounts, which matters if you ever move the app off Replit.

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 Replit 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 Replit developer.

Questions

Common questions

Replit Auth or Clerk Auth?

Replit Auth for prototypes and internal tools; Clerk Auth for branded, customer-facing or commercial products.

Why does sign-in fail on my published Replit app?

With Clerk, check that the production environment was set up. Then check the published app’s secrets and the logs.

Can I switch sign-in later?

Yes, Replit says you can start with one and migrate later. Switching after launch means moving users, so it’s easier to choose first.

Want your Replit 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