Why use Lovable workspace identity reuse
Identity reuse fits when everyone who uses your app is already in your Lovable workspace. Without it, you would need to build and maintain a second login system, and your teammates would sign in twice: once to Lovable, and once to your app. With it, the app already knows the current user’s name, email, and user ID. This is most useful for internal tools, employee portals, admin dashboards, approvals apps, reporting tools, and workspace-only workflows. For customer-facing apps, public signup flows, or apps where users do not have Lovable accounts, use traditional app authentication instead.Common use cases and example apps
Prerequisites
To use Lovable workspace identity reuse, you need:- A Business or Enterprise workspace.
- A newer Lovable project that uses TanStack Start. Some older projects are not eligible.
- Lovable workspace identity reuse enabled for the workspace.
How Lovable workspace identity reuse works
When an eligible signed-in user opens the preview or published app, Lovable creates a short-lived identity token for that project and user. Lovable’s proxy passes that identity to the app request, and the generated app helper verifies it before exposing the current user to your app code. The app can then use the signed-in Lovable user as an ambient identity. In practice, this means you can ask Lovable to show the current user’s name, filter data to the current user, or use the identity in app logic without creating an app-specific sign-in page. Lovable protects the identity boundary by stripping incoming identity headers before it adds its own signed identity token. This prevents visitors from spoofing another user by sending their own identity header.What your app can read
When Lovable adds the identity helpers, your app can read:- The signed-in user’s Lovable user ID.
- The user’s display name, when available.
- The user’s email address, when available.
How it works with Lovable Cloud
Lovable Cloud is not required for workspace identity reuse. For apps that do use Lovable Cloud, Lovable can use the signed-in Lovable identity when your app needs per-user data access. This lets Lovable Cloud-backed features recognize the current workspace member without adding a separate app sign-in flow. Use this pattern when each workspace member should only see or edit their own Cloud data. For example, an internal task tracker can show each signed-in Lovable user only the tasks assigned to them.Set up Lovable workspace identity reuse
Workspace identity is managed from App login methods in workspace Privacy & security settings. To use it in an individual project, ask Lovable to add workspace identity reuse to the app.Open App login methods
Find Lovable workspace identity
Confirm the workspace setting
Ask Lovable to use the signed-in user
Test in preview
When to use traditional app authentication instead
Use traditional app authentication when:- Your app is customer-facing or public.
- Users should create accounts inside the app.
- Users may not have Lovable accounts.
- You need app-specific login methods such as email/password, magic links, Google sign-in, Microsoft sign-in, or SAML SSO for Cloud app users.
- You need external customer lifecycle management that is separate from Lovable workspace membership.
FAQ
Is workspace identity reuse the same as workspace SSO?
Is workspace identity reuse the same as workspace SSO?
Do I need workspace SSO configured to use this?
Do I need workspace SSO configured to use this?
Which plans include Lovable workspace identity reuse?
Which plans include Lovable workspace identity reuse?
Can public visitors use this identity?
Can public visitors use this identity?
Does this replace Google auth, email auth, or SAML SSO for my app?
Does this replace Google auth, email auth, or SAML SSO for my app?
Does this consume extra credits?
Does this consume extra credits?
Troubleshooting
I do not see Lovable workspace identity in App login methods
I do not see Lovable workspace identity in App login methods
What stack is this project on?The app shows no signed-in user
The app shows no signed-in user
Lovable added a login page instead of reusing my identity
Lovable added a login page instead of reusing my identity
My Cloud data does not recognize the user
My Cloud data does not recognize the user