Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@lovable.dev/lovable-auth-js

Package Overview
Dependencies
Maintainers
14
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lovable.dev/lovable-auth-js

Lovable Auth JS

latest
npmnpm
Version
0.0.1-dev.1
Version published
Maintainers
14
Created
Source

@lovable.dev/lovable-auth-js

Better Auth wrapper for Lovable authentication in TanStack Start apps.

Installation

npm install @lovable.dev/lovable-auth-js

Usage

Client setup:

import { newAuthClient } from "@lovable.dev/lovable-auth-js";

export const authClient = newAuthClient();
export const { signIn, signOut } = authClient;

TanStack Start route setup:

import { createFileRoute } from "@tanstack/react-router";
import { registerAuthRoutes } from "@lovable.dev/lovable-auth-js/server";

export const Route = createFileRoute("/api/auth/$")(registerAuthRoutes());

Sign in with the Lovable OAuth provider:

await authClient.signInWithLovable({
  callbackURL: "/account",
});

signInWithLovable uses redirect mode outside an iframe and popup mode in live preview. Pass mode: "redirect" or mode: "popup" to force a flow.

Server env vars:

NameDescription
LOVABLE_TENANT_IDLovable tenant ID.
LOVABLE_OAUTH_CLIENT_IDLovable OAuth client ID.
LOVABLE_OAUTH_CLIENT_SECRETLovable OAuth client secret.
LOVABLE_AUTH_SECRETSecret used to sign auth cookies and tokens.
LOVABLE_AUTH_TRUSTED_ORIGINSComma-separated trusted origins.

Keywords

lovable

FAQs

Package last updated on 21 May 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts