Skip to main content
This page documents email authentication settings for apps using the built-in backend (Cloud). Projects connected to your own Supabase project manage authentication in Supabase instead. For an overview of all sign-in methods and user management, see Users and authentication.
Let users sign up for your app with an email address and password. Email is the default sign-in method, and Lovable generates the signup, login, and password reset flows for you. For example, tell Lovable:
To configure it, go to Cloud tab → Users → Auth settings → Email.

How email sign-in works for users

  • Signing up: the user enters an email address and password. Unless auto-confirm is on, they receive a confirmation email and verify the address before they can sign in.
  • Signing in: email and password, or a passwordless flow if you build one (see below).
  • Resetting a password: the user requests a reset, receives a password reset email, and picks a new password.
  • Changing an email address: with secure email change on, both the old and new address must confirm the change.
Every email in these flows can be sent from your own domain with your own branding. See Custom emails.

Passwordless sign-in

Email sign-in doesn’t have to mean passwords. Ask Lovable to build a magic link or one-time code flow instead:
The One-time codes settings below control how long emailed codes and magic links stay valid, and how many digits codes have.

Email confirmation

Two settings control how addresses are verified:
  • Auto-confirm email: sign users in immediately without requiring them to confirm their email address. With auto-confirm off, users receive a confirmation email and must verify the address before signing in.
  • Secure email change: require confirmation on both the old and new address when a user changes their email.
Auto-confirm makes testing easier, but confirmed emails are worth keeping for real apps: without confirmation, anyone can sign up with an address they don’t own.

Password rules

Four settings set the bar for passwords:
  • Minimum password length: minimum 6 characters; 8 or more is recommended.
  • Required password characters: choose between letters and numbers; lowercase, uppercase, and numbers; or lowercase, uppercase, numbers, and special characters.
  • Password HIBP check: reject known or easy-to-guess passwords using the Have I Been Pwned database of leaked passwords.
  • Require re-authentication for password changes: require a recent login before a password can be changed.
Stricter rules protect accounts but add signup friction. The HIBP check is the highest-value setting here: it blocks the passwords attackers try first, without making rules harder for everyone else.

One-time codes

For login flows that email a one-time code instead of using a password:
  • Email OTP expiration (seconds): how long a code or magic link stays valid, from 60 seconds to 24 hours.
  • Email OTP length: 4 to 8 digits.

Sending limits

Rate limit for sending emails, found under Advanced in the email settings, caps how many authentication emails your project sends per hour. If your app signs up many users at once and confirmations stop arriving, this limit is the first thing to check. To raise it, first set up email sending for the project, either managed email or a verified custom domain. See Custom emails.

Troubleshooting

Ask users to check their spam folder first, since emails from new domains often land there. If many signups happen at once, your project may have hit its hourly email rate limit. For better deliverability and branded senders, set up custom emails.
The published URL or custom domain is probably missing from your project’s redirect URLs. See Site URL and redirect URLs.
Their confirmation email may have expired or landed in spam. Signing in again does not resend it; the user can trigger a new confirmation email by signing up again with the same email address. You can also create the account for them: users added with Add user → Create new user in Cloud tab → Users are confirmed automatically.

FAQ

Ask users to check their spam folder first, since emails from new domains often land there. If many signups happen at once, your project may have hit its hourly email rate limit. For better deliverability and branded senders, set up custom emails.
Auto-confirm is convenient while building and testing, because you can create accounts without checking an inbox. For a live app, leaving confirmation on ensures every account belongs to a real, verified address.
Yes. Ask Lovable to build a magic link or one-time code flow: users receive an email and sign in without typing a password. The One-time codes settings control how long codes stay valid and how many digits they have.
Yes. Disable it under Cloud tab → Users → Auth settings → Email, for example if your app should only offer Google or SAML SSO sign-in. Make sure at least one sign-in method stays enabled.
Lovable generates the reset flow when it builds email sign-in: users request a reset, receive a password reset email, and choose a new password. You can customize the reset email under Cloud tab → Emails.
Signup confirmations, password resets, invites, and magic links are sent using your project’s email templates. Set up sending from your own domain and preview each template under Cloud tab → Emails. See Custom emails.