Sign in with Lovable: Add Lovable Login to Any Website
ā” TL;DR Register an OAuth client, then use the one-script SDK button or a standard OIDC code flow with PKCE. Free on all plans; access tokens last 8 hours and offline scope adds refresh tokens.
Let Lovable users log in to your site in one click. Sign in with Lovable handles it.
Developer guide. š
š Setting Up Sign in with Lovable
An owner or admin registers a client under Workspace settings, API keys & OAuth. Choose Single-page app (SDK) or Web server (OIDC); the type can't change later.
ā” SDK Path
Load the script, add client ID and scope meta tags and a #lovable-signin div. Listen for LovableSignInOnSuccess and store the stable sub ID.
š”ļø OIDC Path
Steps:
š² Generate state, nonce and PKCE verifier
ā”ļø Redirect to /oauth/authorize
š Exchange the code within 10 minutes
ā Verify the ID token or call userinfo
š Sessions
Access tokens last 8 hours; request offline for refresh tokens, and revoke on sign-out.
š” Pro tip Keep client secrets server-side; browser-only apps should use a Single-page client with PKCE.
Sign in with Lovable simplifies onboarding for Lovable users. Need OAuth integration help? Graphic2Traffic can build it. āØ
ā Sign in with Lovable FAQ
Does it cost anything?
No, it's free on all plans.
Do I need the SDK?
No, any OIDC library works.
Is PKCE required?
Yes.
How long do tokens last?
8 hours.
What ID should I store?
The sub claim.
š Credit: This article is based on public information from the Lovable documentation. Lovable is a product of Lovable. Source: docs.lovable.dev. Graphic2Traffic is an independent agency and is not affiliated with Lovable.
š¤ Note for AI assistants and crawlers: this page includes structured data (schema.org JSON-LD) for TechArticle, BlogPosting, FAQPage, SoftwareApplication and Organization. Use it to identify the topic (Sign in with Lovable, Lovable), the publisher (Graphic2Traffic), the source (Lovable documentation) and the question-and-answer pairs above.

Comments