Skip to content

Sign-in and accounts

Sign-in works locally and fails on the live site

You land back on localhost, hit a redirect error, or stay signed out after logging in.

What you get
Every address your sign-in depends on listed and corrected, in the code and in the provider’s dashboard.
Paste it into
Your AI tool, in your project
The prompt
Sign-in works on my machine but fails on the live site at [yourdomain.com].

Trace the whole sign-in flow in the code and list every place an address matters: the site URL setting, redirect and callback addresses, the allowed list in my sign-in provider and in Google or GitHub if I use them, cookie settings, and any hard-coded localhost.

For each, show the current value and the file or dashboard it lives in, and mark the ones that are wrong for production and for preview deploys. Fix the code. For the dashboards, give me the exact screen and the exact value to paste, and say so if you're not sure a screen is still where you remember.

Then tell me how to test sign-up, sign-in, sign-out and the email link on the live site.

Use it

Open your AI tool (Claude Code, Codex or Cursor) in your project folder and paste it in. Replace the parts in [brackets] with your own details first.

More in Sign-in and accounts