Learning resourcesReviewed · Lovable

Lovable OAuth client integration guide

This Lovable guide helps developers connect apps to users’ Lovable accounts, but project and workspace permissions require a Business or Enterprise workspace. It explains client registration, user consent, authorization codes with S256 PKCE, verification and credential management.

Researched 15 Nov 2026

In short.

This guide explains Lovable account connections for app and AI-assistant developers, but project and workspace permissions require a Business or Enterprise workspace. It documents browser and backend clients using authorization codes with S256 PKCE, with a client secret additionally required for backend clients. It suits integrations acting for individual users; the client credentials grant for unattended access is unsupported. Working sign-in, token refresh and operational reliability are not established by the documentation.

Researched and written by an AI model and checked by a second AI model. How it works

Coverage is the complete captured page at [https://docs.lovable.dev/features/oauth-clients.md], including registration, scopes, endpoints, verification, edits, secret replacement, deletion, limitations, FAQ and troubleshooting. Linked documentation, the documentation index, discovery-document contents, API responses and MCP server behavior are excluded. No commands, authorization flows, token exchanges, credential changes or other integrations were executed or tested.

The overview

Identity

The resource is Lovable’s documentation page “Connect apps to Lovable with OAuth” [https://docs.lovable.dev/features/oauth-clients.md]. It explains how a website or tool registers an OAuth client so users can authorize access to their Lovable accounts.

Its scope is client registration and integration guidance, including browser apps, backend apps and custom MCP connections. It is documentation rather than a downloadable integration or code library.

Assessment

The guide provides useful implementation detail: application types, callback rules, eight supported scopes, production endpoints and the effects of verification, edits and secret replacement. It helps a developer decide whether Lovable supports the account access their integration needs.

The main adoption constraints are workspace role, plan eligibility for sensitive scopes and support for the required authorization flow. The page does not provide a complete runnable application, measured reliability or independent security results.

Users

The intended users are developers building account-aware websites, project dashboards, internal tools or AI assistants that act for individual Lovable users. Workspace owners and admins handle the registration and ongoing client settings.

For beginners, the page distinguishes account identification from project and workspace access. Experienced developers get protocol requirements and lifecycle details, but must supply their own application, OAuth library and token storage.

Capabilities

The non-sensitive scopes are openid for OpenID Connect identification, profile for profile information, email for the email address and offline for refresh tokens. These scopes are available on all plans.

The sensitive scopes are projects:read, projects:write, workspaces:read and workspaces:write. Project write access includes reading, creating and modifying projects; workspace write access covers reading and modifying existing workspaces. Requests remain subject to the user’s existing access.

An MCP client that accepts custom OAuth credentials can use a registered client to connect to the Lovable MCP server [https://mcp.lovable.dev]. The page does not assess any particular MCP client’s compatibility.

Using it

Requirements

Registration requires the owner or admin role in the workspace that will manage the client. Any plan supports non-sensitive scopes; sensitive scopes require Business or Enterprise.

The integration must support the authorization code flow with PKCE using S256 and provide a redirect URI. A Single-page app client uses PKCE without a secret. A Web server client requires PKCE plus a client secret stored in secure backend or connector configuration.

Redirect URIs must use HTTPS, with HTTP exceptions for development on localhost, 127.0.0.1, IPv6 loopback and .localhost addresses. The application type cannot be changed after registration.

Mechanism

An OAuth client records the app’s identity, callback addresses and permitted scopes. The app requests scopes, the user signs in and authorizes access, and Lovable returns an authorization code to the callback. The app exchanges that code using its PKCE verifier and, for a Web server client, its secret. PKCE connects the authorization request to the later token exchange.

Registering a scope alone grants no access: the authorization request must include it, the user must approve it and the user must already have access to the relevant resources. Refresh tokens require offline in both the registration and the authorization request.

The documented issuer is [https://lovable.dev/oauth], with discovery at [https://lovable.dev/oauth/.well-known/openid-configuration]. Authorization and token endpoints are [https://lovable.dev/oauth/authorize] and [https://lovable.dev/oauth/token]. User information and signing keys are at [https://lovable.dev/oauth/userinfo] and [https://lovable.dev/oauth/keys]. The page recommends an OAuth or OpenID Connect library to validate authorization responses and any ID token used for sign-in.

Setup

In the owning workspace, open Workspace settings → API keys & OAuth → OAuth clients and choose New OAuth client. Select Single-page app or Web server, enter a descriptive name, add the integration’s callback addresses and select the required scopes.

After registration, configure the integration with the client ID, registered callback, requested scopes and S256 PKCE. Web server clients also need the secret, which is displayed only when created or replaced. The page warns against placing that secret in browser code, public repositories or prompts.

For sensitive scopes, request Lovable verification from the client details. Users can connect before verification, but see an unverified-app warning until approval has been applied. An undecided request expires after five days and can be submitted again.

Example

The page’s dashboard example combines openid, projects:write and workspaces:read to identify the user, manage projects and display workspace information. This requires a Business or Enterprise workspace because the resource-access scopes are sensitive.

If that dashboard needs refresh tokens, its registration and authorization request would also include offline. Each user would authorize the dashboard, and its access would remain limited by that user’s permissions. This is an illustrative configuration, not an executed integration.

Assessment & evidence

Limitations

Each workspace can register up to 20 OAuth clients, and each client can have up to 10 redirect URIs. Only the eight listed scopes are available. Supported flows are authorization codes with PKCE and optional refresh tokens; the client credentials grant is unsupported.

Edits to a verified client that include sensitive scopes enter review while the existing configuration remains active. Replacing a pending proposal creates a new request; even a revised proposal removing all sensitive scopes waits for approval while that review remains pending. Editing and withdrawal become unavailable once Lovable starts applying approval.

A Web server client has one active secret. Replacing it disables the old secret within seconds, which can break sign-in and refresh for integrations still using it. Deleting a client is irreversible and stops sign-in and existing connections. Token lifetimes, API rate limits and service guarantees are not specified.

Reasoning

The documented design fits integrations whose access should follow each user’s identity and permissions. That assessment follows from the consent step, registered scope restrictions and the explicit rule that scopes cannot expand a user’s existing access.

The practical tradeoff is between the access needed and the administration it introduces. Identity-only connections can use any plan without verification; project and workspace integrations require an eligible workspace and verification to remove the warning. These documented controls do not establish the security of a particular implementation.

Alternatives

For a script managing one workspace without individual user connections, the page points to workspace API keys, available on Business and Enterprise [https://docs.lovable.dev/features/api-keys.md].

For an app built with Lovable, the page distinguishes Google authentication [https://docs.lovable.dev/features/google-auth.md] from Sign in with Lovable [https://docs.lovable.dev/features/lovable-auth.md]. It says enabling the latter in the app’s authentication settings registers the client automatically. These linked guides were not assessed, so their additional requirements and behavior are unknown here.

Evidence

The evidence is the complete documentation page at [https://docs.lovable.dev/features/oauth-clients.md], captured as selected-page.txt at 2026-11-15T02:25:27.128Z. Its source revision is sha256:79ef6299aeb468352ac59760776b5fb47c26b5d27dc6eb5de849208d87d45d7e.

This primary documentation supports descriptions of the advertised configuration and restrictions. It supplies no independently observed authorization exchanges, application source code, performance measurements or security assessment. Live endpoint responses and working integrations remain unverified.

Access & freshness

Costs

The page establishes plan eligibility: Free and Pro support non-sensitive scopes, while sensitive scopes require Business or Enterprise. It does not give subscription prices, a separate OAuth fee, usage charges or billing terms.

Actual subscription, API and application-hosting costs are unknown from this evidence. Availability on a plan does not establish the total cost of operating an integration.

Rights

The supplied page does not state a documentation or code license, redistribution permission or commercial-use terms. Those rights are unknown.

OAuth authorization permits the requested account operations within the user’s existing access. The page does not establish rights to retain, redistribute or reuse retrieved data, or specify an integrator’s privacy obligations.

Freshness

The capture is dated 15 November 2026. The supplied page gives no publication date, last-updated date or feature version, so its revision history is unknown.

The capture establishes what the page documented at acquisition time. Whether the live interface, plan rules and endpoints match those descriptions has not been assessed.

Actions

Before adopting this approach, confirm the owning workspace’s plan and administrator role, the integration’s S256 PKCE support and its exact callback addresses. Choose the smallest scope set that supports the intended feature and decide whether refresh tokens are necessary.

For an implementation pilot, verify user consent, callback handling, token validation and refresh behavior. For server clients, also verify that every dependent configuration can be updated during secret replacement. These outcomes are unknown; no integration was executed or tested.

Check the actual verification result before assuming the warning has disappeared. Approval requested, Verification pending and Status unavailable do not mean the client is verified. Account for pending configuration reviews when scheduling changes to callbacks or scopes.

Evidence for this report

selected-page.txtselected · checked 2026-11-15