Futurista Soft Book a call (opens in a new tab)
Founder guide

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.

Short answer

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

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 seeUsuallyFix
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 addressCheck 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 emailSee users stuck unconfirmed below
Sign-up seems to work, but no email arrivesSpam, a sending limit, the default sender, or an address that already has an accountSee confirmation emails below
“Token has expired or is invalid” or otp_expired when the link opensThe link has expired, or was already used, sometimes by an email scannerSend a fresh link, and see links that fail below
Works in preview, fails on the live siteThe live address or custom domain is missing from your redirect URLsAdd 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_expiredA security check in the sign-in link didn’t match, or the sign-in attempt expiredTry opening the link in the browser where sign-in started, or start again
over_email_send_rate_limit or over_request_rate_limitToo many emails to that address, or too many requests from one IP addressWait, then check your limits (see rate limits)
email_address_invalidTesting with an example or test domain, which Supabase doesn’t supportTest with a real inbox
signup_disabled or email_provider_disabledNew sign-ups, or email sign-ups, are switched offTurn 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.

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.

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.

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

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.

Read next