@korve-dev/app-auth through an explicit browser or server entrypoint.
Secure, HttpOnly, SameSite=Lax
__Host- cookies with no Domain attribute, and apply CSRF protection to writes.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Add project-scoped sign-in and sessions to applications deployed on Korve.
@korve-dev/app-auth through an explicit browser or server entrypoint.
@korve-dev/app-auth is release-ready in the repository but is not yet available from the public
npm registry. Do not add it as an npm dependency until anonymous registry installation succeeds.
The examples currently use the checked-out workspace package.import { createKorveAuthClient } from "@korve-dev/app-auth/browser";
const auth = createKorveAuthClient({ apiUrl: "https://api.korve.dev", project: "storefront" });
await auth.signInWithGoogle(`${location.origin}/auth/callback`);
const session = await auth.handleOAuthCallback();
Secure, HttpOnly, SameSite=Lax
__Host- cookies with no Domain attribute, and apply CSRF protection to writes.
import { createKorveAuthServerClient } from "@korve-dev/app-auth/server";
const auth = createKorveAuthServerClient({
apiUrl: "https://api.korve.dev",
project: "storefront",
accessToken,
});
const user = await auth.getUser();