Manage users
The Users view shows a Signups chart of new users over the last 7, 30, or 90 days, and a searchable list of every user in your app. To add users yourself, click Add user:- Send invitation: enter an email address and Lovable sends the person an invite email to join your app.
- Create new user: enter an email address and password to create the account directly. Users created this way are automatically confirmed.
Authentication settings
Click Settings in the Users view to configure how users sign in. The Sign in methods list shows each available method with an Enabled or Disabled badge. You can change these settings directly, or ask Lovable in the project chat. When you enable a sign-in method, Lovable can also update your app’s login page, for example by adding the matching sign-in button.- Email: the default method, with settings for confirmation, password rules, one-time codes, and sending limits.
- Phone: SMS one-time codes through your own SMS provider (Twilio, Twilio Verify, TextLocal, Vonage, or MessageBird).
- Google: managed by Lovable with no setup, or your own Google Cloud OAuth credentials.
- Apple: managed by Lovable, or your own Apple Developer credentials.
- Microsoft: managed by Lovable with no setup, or your own Azure app registration.
- Lovable: sign-in with a Lovable account, managed by Lovable with no setup.
- SAML SSO: sign-in through a SAML 2.0 identity provider such as Okta or Microsoft Entra ID.
- OIDC: sign-in through your own OpenID Connect provider such as Auth0, Okta, Microsoft Entra ID, or Keycloak.
Sign-up controls
Two settings on the main auth settings form control who can join your app:- Disable sign-up: prevent new users from signing up. Existing users can still sign in, and you can still add users with Add user.
- Enable anonymous users: let visitors use your app without creating an account. Ask Lovable in the project chat to build flows that use anonymous sessions, such as guest checkouts.
Site URL and redirect URLs
Under Advanced in the auth settings:- Site URL: the default URL users are redirected to after authentication when no redirect URL is specified.
- Redirect URLs: up to 50 URLs that auth providers are permitted to redirect to after authentication. Custom schemes (for example,
myapp://callback) are supported for mobile apps.
- End a web address in
/**, so that every path on it matches, for examplehttps://app.yourdomain.com/**. - Use a domain you own. Each time Lovable updates the list, it removes other addresses on Lovable domains, such as another
lovable.appaddress. - To test on your computer, open your app at an address such as
http://127.0.0.1:5173and addhttp://127.0.0.1:5173/**. Lovable rejectslocalhostaddresses.
lovable.app address, and then returns to the address you added.
If sign-in works in preview but breaks on your published app or custom domain, these URLs are usually the reason. Ask Lovable in the project chat to update them for your domain. If your app uses Google sign-in with your own Google OAuth credentials, the new domain also needs a redirect URI in Google Cloud Console. See Managing Google authentication.
Auth emails
Authentication flows send emails for signup confirmation, password resets, invites, magic links, email changes, and re-authentication. By default they come from a generic sender. To send them from your own domain with custom branding, set up emails under More → Emails. See Custom emails.How users stay signed in
A session is the time a person stays signed in to your app, from sign-in to sign-out. Your users usually stay signed in between visits until they sign out or you delete their account. Lovable does not offer settings to limit how long a session lasts or to sign people out after a period of inactivity. When a person signs in, Lovable gives them two tokens that keep their session going:- Access token: your app sends the access token with each request to your app’s backend to show who the person is. The access token expires after a short time, and Lovable does not offer a setting to change how long it lasts.
- Refresh token: your app uses the refresh token to get a new access token, so the person does not have to sign in again.
Signing keys
A signing key is the secret that your app’s built-in backend uses to sign each access token. The signature shows that your backend created the token and that nobody changed it. Your app checks the signature before it trusts a token, so nobody can pose as one of your users with a made-up token. Your project’s signing key is usually one of two kinds, and your app’s own sign-in works with both:- Shared secret (HS256): your backend signs and checks tokens with one secret. Lovable keeps the secret private, so a server outside your app has to ask your backend to check a token.
- Key pair (ES256): your backend signs tokens with a private key and publishes the matching public key. Any server, such as your own server on another host, can use the public key to check your app’s tokens, but not to create them.
Let other apps connect on behalf of your users
Your app’s built-in backend can act as an OAuth server, so other apps can connect to your app on behalf of your users. An AI assistant, such as ChatGPT or Claude, that connects to your app through an agent integration works this way. The person signs in to your app and approves the assistant’s access on a consent page. The assistant then acts as that person. Lovable sets up the OAuth server when you publish your app as an MCP server that requires sign-in. You can also ask Lovable in the project chat to set it up, or to check the setup when an app cannot connect. Lovable builds a consent page in your app, where people approve another app’s access. When Lovable sets up the OAuth server, it also:- lets other apps register themselves by default: each app gets its own ID from your app’s OAuth server, so you do not need to add each app yourself. People still approve each app on the consent page the first time it connects.
- sets your app’s Site URL to its main address: your primary custom domain, your published
lovable.appaddress, or the preview address if the app is not published yet
FAQ
Can workspace admins control which sign-in methods projects use?
Can workspace admins control which sign-in methods projects use?
Are my app's users copied when I remix a project?
Are my app's users copied when I remix a project?
Why does sign-in fail on my published app but work in preview?
Why does sign-in fail on my published app but work in preview?
Can I see every redirect URL, including the ones Lovable adds?
Can I see every redirect URL, including the ones Lovable adds?
Can I change token expiry, session length, or inactivity timeout?
Can I change token expiry, session length, or inactivity timeout?
Which algorithm signs my app's tokens?
Which algorithm signs my app's tokens?
Does managed Google or Apple sign-in work with external hosting and phone apps?
Does managed Google or Apple sign-in work with external hosting and phone apps?
Can I raise my app's authentication rate limits?
Can I raise my app's authentication rate limits?
Do tokens stay valid after a user signs out or is deleted?
Do tokens stay valid after a user signs out or is deleted?
Can I import existing users with their IDs and password hashes?
Can I import existing users with their IDs and password hashes?