@deploybaseline/clerk
v0.14.0
Published
Clerk authentication and user management emulator for local development and tests: the Frontend API for clerk-js (environment, client, sign-in, sign-up, sessions, `/v1/me`, social sign-in, handshake), OIDC discovery, JWKS, OAuth authorize/token/userinfo,
Readme
@deploybaseline/clerk
Clerk authentication and user management emulator for local development and tests: the Frontend API for clerk-js (environment, client, sign-in, sign-up, sessions, /v1/me, social sign-in, handshake), OIDC discovery, JWKS, OAuth authorize/token/userinfo, users, email addresses, organizations, memberships, invitations, sessions, and JWT templates.
Part of Baseline: local drop-in replacement services for CI and no-network sandboxes.
Usage
npx @deploybaseline/cli start --service clerkimport { createEmulator } from "@deploybaseline/cli";
const clerk = await createEmulator({ service: "clerk" });
// Point @clerk/backend apiUrl, or the browser SDK's proxyUrl, at clerk.url
await clerk.close();For @clerk/nextjs with Clerk on its default port:
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=pk_test_YmFzZWxpbmUuY2xlcmsuYWNjb3VudHMuZGV2JA
NEXT_PUBLIC_CLERK_PROXY_URL=http://localhost:4010
CLERK_SECRET_KEY=sk_test_baseline
CLERK_API_URL=http://localhost:4010Documentation
- Clerk docs: Frontend API, Backend API, OAuth / OIDC, session tokens, JWT templates, and seed config
- API reference:
http://localhost:3999/docs/clerkwhile the CLI runs (how it works)
License
Apache-2.0
