Lovable login not working? Fixing sign-up and sign-in errors
Last reviewed 25 November 2026
Someone signs up, and nothing happens. Or they can sign in on the preview but not on your real domain. Sign-in problems stop people at the door. Many of them trace back to a setting you can check. Here’s how to match what you see to the setting behind it.
First check whether your app uses Lovable’s built-in backend or your own Supabase project, because the settings live in different places. If sign-in works in preview but not live, add the live address to your redirect URLs. If sign-in fails with an email_not_confirmed error, the user hasn’t clicked the confirmation link. Missing emails usually mean spam, a sending limit or the default sender.
Rather talk it through with someone? Tell us what’s happening →
Where your sign-in settings live
- Lovable’s built-in backend (Lovable Cloud): users and sign-in settings are under More → Users, and sign-in emails under More → Emails. Unless you ask for other sign-in methods, Lovable sets up email and password, Google sign-in and Sign in with Lovable. See Lovable’s authentication guide.
- Your own Supabase project: Lovable’s Supabase guide says sign-in settings “live in your Supabase project, not in Lovable”. Asking Lovable in chat to change them won’t change them there. Use the Supabase dashboard.
Google sign-in has its own set of errors. Those are covered in fixing Google sign-in. This guide is about email and password.
Match the error to the fix
The codes in this table are Supabase’s error codes, from its error code list. Lovable’s Cloud guide says its built-in backend uses Supabase’s open-source foundation, so you may see them in either setup.
| What you see | Usually | Fix |
|---|---|---|
invalid_credentials, often shown as a message such as “Invalid login credentials” | The email or password isn’t recognised, or there’s no account with that address | Check the user exists under More → Users, then ask them to reset their password |
email_not_confirmed, often shown as a message such as “Email not confirmed” | The user hasn’t clicked the link in the confirmation email | See users stuck unconfirmed below |
| Sign-up seems to work, but no email arrives | Spam, a sending limit, the default sender, or an address that already has an account | See confirmation emails below |
“Token has expired or is invalid” or otp_expired when the link opens | The link has expired, or was already used, sometimes by an email scanner | Send a fresh link, and see links that fail below |
| Works in preview, fails on the live site | The live address or custom domain is missing from your redirect URLs | Add it (see the next section) |
Password refused at sign-up (weak_password) | Doesn’t meet your password rules: too short, missing required character types, or found in a list of leaked passwords (Lovable turns this check on by default for new projects) | Check your password settings under More → Users → Settings → Email |
bad_code_verifier or flow_state_expired | A security check in the sign-in link didn’t match, or the sign-in attempt expired | Try opening the link in the browser where sign-in started, or start again |
over_email_send_rate_limit or over_request_rate_limit | Too many emails to that address, or too many requests from one IP address | Wait, then check your limits (see rate limits) |
email_address_invalid | Testing with an example or test domain, which Supabase doesn’t support | Test with a real inbox |
signup_disabled or email_provider_disabled | New sign-ups, or email sign-ups, are switched off | Turn them back on in your sign-in settings, if that wasn’t intended |
Sign-in works in preview but not on your live site
Lovable’s docs say the usual reason is that the published address or custom domain “is missing from your project’s redirect URLs”. Redirect URLs are the addresses your sign-in system is allowed to send people back to after they sign in or click an email link.
- On Lovable’s built-in backend, Lovable sets the Site URL to your published address when you publish, and adds a custom domain to the redirect URLs when you connect it. If it’s still missing, ask Lovable in chat to add it, or add it under More → Users → Settings → Advanced → Redirect URLs. You can list up to 50.
- On your own Supabase project, add the live address yourself in Supabase’s URL settings. Supabase says the Site URL is the default address people are sent to when the code doesn’t name one, and any address the code does name should match the Redirect URLs list. Its redirect URL guide shows wildcard patterns for preview addresses.
- Testing on your own computer? Lovable rejects
localhostaddresses. Open your app at an address likehttp://127.0.0.1:5173and addhttp://127.0.0.1:5173/**to your redirect URLs.
Connected a custom domain recently? Our custom domain guide covers the DNS side.
Confirmation emails not arriving
Lovable’s email sign-in guide lists three things to check: spam, whether the hourly email limit was hit, and whether you’ve set up custom emails.
- The default sender is limited. On Lovable’s built-in backend, sign-in emails go through a shared sender with its own strict limit until you set up emails from your own domain under More → Emails. Raising the rate limit won’t deliver more email until then.
- On your own Supabase project, the built-in sender only delivers to members of your Supabase team, and Supabase currently limits it to 2 messages an hour, with no delivery guarantee. Supabase urges everyone to set up their own email provider as custom SMTP.
- The address may already have an account. Supabase may hide that fact, so a repeat sign-up can look as though it worked. (If that account was never confirmed, signing up again sends a fresh confirmation email.)
Sending, logs and your own email domain are covered in detail in fixing Lovable emails.
Users stuck unconfirmed
Signing in again doesn’t resend the confirmation email. Lovable gives two ways out: the user signs up again with the same address, or you create the account under More → Users → Add user → Create new user. Accounts created that way are confirmed automatically.
There’s also an Auto-confirm email setting under More → Users → Settings → Email, which lets people sign in without confirming. Lovable suggests it mainly for testing and recommends keeping confirmation on for a live app. Its docs don’t say what the default is, so check your own setting. On your own Supabase project, confirmation is on by default, and Lovable says to turn it back on before real users arrive if you switch it off for testing.
Email links that fail
- Email scanners can use the link first. Some email security tools open links to check them. Supabase’s email template guide says this can use up the confirmation link, so the user then sees “Token has expired or is invalid”. Its two fixes: put a code in the email (
{{ .Token }}) for the user to type in, or link to a page in your app where the user confirms with a button. - A security check in the link didn’t match (
bad_code_verifier). Supabase’s error code list says this points to a bug in the app’s sign-in code. Try opening the link in the browser where sign-in started, or start again. If it keeps happening, someone needs to look at the code. - The link lands on the wrong site. The address it sends people back to must be in your redirect URLs. If the code doesn’t name one, Supabase sends people to your Site URL.
Password reset links
On Lovable’s built-in backend, reset is built in: the user asks for a reset, gets an email and picks a new password. You can customise and preview the reset email under More → Emails.
On your own Supabase project, the reset email should send people to a “change password” page in your app, as Supabase’s password guide says, and that page saves the new password. That page’s address also needs to be in your redirect URLs. If no address is given, people land on your Site URL instead, often the home page, with nowhere to set a new password. A new password that matches the old one is refused (same_password).
Signed out on refresh, or after a while
Lovable says users usually stay signed in between visits until they sign out or you delete their account. Behind the scenes, a short-lived access token (Supabase recommends one hour for most apps) is renewed with a refresh token, which can only be used once. On Lovable’s built-in backend there’s no setting for session length or an inactivity timeout. On your own Supabase project, Supabase offers these in Auth settings on its Pro plan and above.
If you see refresh_token_not_found, the session that token belonged to no longer exists, and the user has to sign in again. Supabase’s sessions guide lists several ways a session can end, such as signing out, changing password or, if configured, a time limit or a sign-in on another device. If none of these fit and it keeps happening, someone needs to look at how the app’s code handles the session.
Rate limits when testing
Testing sign-up over and over is a quick way to hit limits. From Supabase’s rate limit page: sign-ups, password resets and resent emails default to 30 requests per 5 minutes from one IP address, and password sign-ins to 150 per 5 minutes. A new one-time code or magic link for the same user waits 60 seconds by default. On your own Supabase project, change them under Authentication → Rate Limits.
On Lovable’s built-in backend, the email limit is under More → Users → Settings → Email → Advanced. New projects start at 1,000 emails an hour once email sending is active. Emails from your own domain also count towards a workspace limit that depends on your plan.
When to get help
- Real users can’t get in, and the settings above all look right.
- People are signed out on refresh and the settings above don’t explain it.
- Your app uses your own Supabase project, and nobody is sure which settings live where.
Questions founders ask
Why does sign-in work in the Lovable preview but not on my published app?
Lovable’s docs say the usual reason is that the published address or custom domain is missing from your project’s redirect URLs. Ask Lovable in chat to add it, or add it under More → Users → Settings → Advanced → Redirect URLs. On your own Supabase project, add it in Supabase.
How do I resend a confirmation email to a user in Lovable?
Signing in again doesn’t resend it. The user can sign up again with the same address, or you can create the account under More → Users → Add user → Create new user, which confirms it automatically.
Should I turn on auto-confirm so users can sign in straight away?
Lovable suggests auto-confirm mainly for testing and recommends keeping email confirmation on for a live app.
Can I make users stay signed in for longer?
On Lovable’s built-in backend there’s no setting for session length or an inactivity timeout, and users usually stay signed in between visits until they sign out. On your own Supabase project, Supabase offers these in Auth settings on its Pro plan and above.