In short.
This guide explains user sign-in for people building Lovable apps, with the main catch that session length and automatic logout after inactivity have no configurable settings. It covers managed and custom identity providers, user administration, redirect configuration, token signing and OAuth access for other apps. Signing out or deleting an account stops token renewal, but an existing access token can remain usable until expiry; sensitive actions need an additional backend session check for immediate cutoff. Pricing, exact token lifetimes and app-specific security correctness are not established, and nothing was run or tested.
Researched and written by an AI model and checked by a second AI model. How it works
Covers the complete selected page at [https://docs.lovable.dev/features/authentication.md], including its workspace-policy notice, user-management guidance, session and signing-key behavior, OAuth setup and FAQ. All linked pages, including the documentation index and provider-specific setup guides, are excluded. No separate licence notice is present in the supplied text. Documented behavior has not been executed or tested; generated security rules, live configuration, performance, pricing and contractual terms remain unassessed.
The overview
identity
Users and authentication is Lovable's documentation for authentication in an app's built-in backend. The original page is [https://docs.lovable.dev/features/authentication.md]. It is a configuration and behavior guide, rather than a standalone authentication service or installable library.
Its scope includes account administration, login methods, signup controls, redirect addresses, authentication emails, session tokens, signing keys and allowing other applications to act with a user's consent.
assessment
The guide is useful for understanding what Lovable configures automatically and which authentication decisions remain with the app builder. Its most consequential details concern redirect failures, persistent sessions and access that can briefly survive sign-out or account deletion.
Managed provider configuration can reduce setup work. Applications requiring configurable session expiry or inactivity logout face a documented limitation. The page describes generated row level security, but does not demonstrate that a particular app's data-access rules are correct.
users
Beginners building a Lovable app can use the guide to request login pages, choose sign-in methods and administer accounts through the Users view. Developers troubleshooting published domains, externally hosted frontends or mobile callbacks will find the redirect rules particularly relevant.
Developers connecting another server or an AI assistant need the signing-key and OAuth sections. Workspace administrators also get guidance on blocking login methods across Business and Enterprise projects.
capabilities
The documented sign-in methods are email, phone, Google, Apple, Microsoft, Lovable, SAML SSO and OIDC. If no methods are specified when requesting login, Lovable sets up email and password, Google and Lovable sign-in. Signup can be disabled, and anonymous sessions can be enabled for flows such as guest checkout.
The Users view provides signup charts for 7, 30 or 90 days, searchable accounts, invitations, direct account creation, account details and raw user JSON. Directly created accounts are automatically confirmed.
The built-in backend can also act as an OAuth server, allowing another app or an AI assistant to connect after the user signs in and approves access on a consent page.
Using it
requirements
Most instructions concern a Lovable project using its built-in backend. Apps connected to an independently managed Supabase project have different responsibilities for Site URL and redirect configuration.
Managed Google, Apple and Microsoft sign-in do not require the builder's own developer accounts. Own provider credentials are needed when the consent screen must show the builder's branding and verified domain. Phone sign-in requires an SMS provider; the page lists Twilio, Twilio Verify, TextLocal, Vonage and MessageBird.
Workspace policy can block individual methods on Business and Enterprise workspaces. Authenticated MCP connections require a signing key pair. The page does not establish plan eligibility or detailed configuration requirements for every login method.
mechanism
An access token identifies the user when the app calls its backend. A refresh token obtains replacement access tokens so the user can remain signed in between visits. Both are stored on the user's device, and access-token renewal happens automatically.
Signing out or deleting an account ends the session and prevents renewal. An access token issued earlier can still work until it expires. For immediate denial of a sensitive action, the guide recommends checking with the backend that the session remains active.
Projects use either HS256, where an external server must ask the backend to validate a token, or ES256, where a published public key supports external verification. Authenticated MCP publishing switches a shared-secret project to a key pair. Previously issued tokens continue working until expiry.
OAuth setup generates a consent page, permits other apps to register themselves by default and sets Site URL to the app's main address. Users still approve each app when it first connects.
setup
Ask Lovable in project chat to add login, naming the required methods and pages that need authentication. Open More → Users → Settings to inspect or change the enabled methods. The page says Lovable generates signup and login pages, connects the backend and adds row level security.
Under Advanced, check Site URL and Redirect URLs. The redirect list supports up to 50 URLs and mobile custom schemes. For the built-in backend, Lovable updates published addresses and connected custom domains automatically. External hosting and local development need explicitly allowed redirects; the documented local example is [http://127.0.0.1:5173/**], and localhost is rejected.
With an independently managed Supabase project, configure Site URL and addresses Lovable does not serve in that project's authentication settings. Custom Google credentials also require the relevant redirect URI in Google Cloud Console. Custom authentication-email branding is configured under More → Emails, with detailed instructions on a separate page.
example
For a customer dashboard, request email and Google sign-in and require authentication before opening the dashboard. For a page displaying payment details, also request a backend session check before showing the information, addressing the documented period when an existing token can survive sign-out.
After publishing or connecting a custom domain, inspect its redirect configuration if sign-in fails outside preview. This illustrates the documented configuration path; no dashboard, login flow or session check was implemented or tested.
Assessment & evidence
limitations
There are no settings for access-token lifetime, total session length or inactivity timeout. The exact access-token lifetime is unspecified. Account deletion is irreversible, but an already issued access token can remain effective until expiry unless sensitive actions check session status.
Add user creates one account at a time and cannot accept an existing user ID or password hash. Project import can move users with their profiles and data, but passwords do not transfer; users must verify their email and choose a new password. Remixing a project copies backend structure and authentication configuration without copying users.
OAuth setup overwrites Site URL with the app's main address even if it was set manually. Lovable also removes other Lovable-domain addresses when updating redirects. The saved redirect list may need comparison with live configuration by support if a matching redirect still fails.
Only the authentication-email sending limit is described as directly adjustable. The page supplies no performance measurements, security audit results or evidence that generated authorization rules meet a particular application's needs.
reasoning
The documented convenience comes from Lovable generating login interfaces, managing provider configuration and maintaining common redirect addresses. This makes the guide particularly relevant when the app already uses Lovable's backend.
Suitability depends on the application's access requirements. Keeping users signed in can simplify repeat visits, while sensitive actions may require the additional session check described in the guide. A requirement for configurable idle logout or token expiry remains unmet by the documented settings.
For external servers and assistant connections, the signing algorithm matters: ES256 supports public-key verification, and authenticated MCP integration requires a key pair. The guide therefore provides integration decisions beyond simply adding a login button.
alternatives
Within the documented options, builders can use Lovable-managed social login or supply their own provider credentials for branded consent screens. Existing organizational identity can connect through SAML 2.0 or OIDC; named provider examples include Okta, Microsoft Entra ID, Auth0 and Keycloak.
Using an independently managed Supabase project is another documented backend arrangement, with more redirect configuration assigned to the builder. The page also points internal workspace tools toward workspace identity reuse. Their detailed setup, costs and comparative security are not assessed here, and the source provides no comparison with standalone authentication products.
evidence
The evidence is the complete Lovable documentation page at [https://docs.lovable.dev/features/authentication.md], retained as selected-page.txt. Its source SHA-256 is 61c0a046d6275ff9b9f3133e258d1fb373a0a43e526ced349a91e9d4ec96fb6c.
Capability and behavior statements come from Lovable's documentation. No application, generated code, login provider, token flow or MCP connection was executed or tested. Linked configuration pages, implementation code, independent audits and performance measurements were not assessed.
Access & freshness
costs
Authentication pricing is unknown from this page. It provides no subscription prices, per-user charges, SMS prices, included usage allowances or costs for increasing limits. Calling authentication part of the built-in backend does not establish that it is free.
Business and Enterprise are named for workspace-wide method controls, but their prices are absent. The page identifies a configurable hourly authentication-email limit and recommends contacting support about other limits before a signup surge; it gives no numeric limits or associated charges.
rights
The supplied page contains no licence or terms establishing rights to reuse or redistribute its documentation or generated application code. Commercial-use terms, code ownership and provider-specific contractual obligations are unknown from this source.
The OAuth consent page is described as the user's approval for another app to access the application on their behalf. That approval does not establish documentation or software redistribution rights.
freshness
The page was captured on 14 November 2026 at 19:46:14.878 UTC. The supplied text gives no publication date, last-updated date or pinned Lovable version.
The capture establishes the documented behavior available in that text. It does not establish when individual features changed or whether the live service has changed since capture.
actions
Choose the required sign-in methods, check workspace restrictions and decide whether managed provider branding is sufficient. Review whether the documented lack of session and inactivity controls fits the application's requirements.
Configure redirects for each deployment address. For sensitive actions needing immediate cutoff after sign-out or deletion, add the documented backend session check. Before an authenticated MCP integration, confirm the current signing algorithm and the OAuth consent-page setup.
Validate the resulting login, permissions and sign-out behavior in the actual app before relying on them. Obtain the missing pricing, usage limits, provider requirements and licence terms separately; this page does not resolve them.
