KBAISE/ for lovable
Library
Docs

Reuse Lovable workspace identity in your app

about 5 minBuildingchecked 6d agoOfficial page
The short version

Let apps built for your team automatically identify who is logged in to Lovable without showing a login screen. It pulls their name, email, and ID so they never have to create a second account.

Workspace members on Business or Enterprise plans who are building internal tools for teammates already using Lovable.

Do this, in order

  1. 1

    Confirm your project uses the TanStack Start framework by asking Lovable in the chat: "What stack is this project on?"

    Workspace identity reuse only works on newer projects using TanStack Start, not older React and Vite projects.

  2. 2

    If needed, have an admin check that "Lovable workspace identity" is set to "Allowed" under Workspace settings -> Security -> Privacy & security -> Publishing -> App login methods.

    This is on by default, but it must be allowed at the workspace policy level for the feature to function.

  3. 3

    Prompt Lovable to use the logged-in Lovable user's workspace identity to identify users and control access.

    Lovable will generate helper code that reads the current member's identity token without building a separate login page.

  4. 4

    Test the feature directly inside the project preview while logged in, then open it in an incognito window to verify the logged-out state.

    Preview sessions carry your real Lovable account credentials, allowing you to test both signed-in and guest views without publishing.

Paste this into your project

Use Lovable workspace identity for this internal app so it automatically recognizes the logged-in team member. Display their name and email in the header. If no Lovable user is logged in, display an access-denied message. Do not add a separate login screen or sign-up flow.

Words decoded

Workspace SSO
A setup that lets your team log in to Lovable itself using your company's central login system, like Google Workspace or Okta.
TanStack Start
The modern technical foundation Lovable uses to build apps that can securely handle user logins and server tasks.
Identity token
A secure digital pass that proves who you are to the app without exposing your password.

Where people get stuck

  • Do not simply ask Lovable to "add login"—it might build a standard email or Google sign-in flow instead of reusing the workspace identity.
  • Do not mix traditional app authentication (like email/password) with workspace identity reuse unless deliberately creating a hybrid app.
  • Teammates without access to the Lovable project itself, or users subject to missing 2FA requirements, will appear as anonymous guests.
  • Do not attempt to use this on an older React + Vite project without upgrading to TanStack Start first.

The short version, steps, decoder and prompt on this page are written automatically from Lovable's own documentation and can lag or misread it. The official page is always the authority.