Skip to content

ClerkAuth

Defined in: plugins/holocron-plugin-clerk/src/capabilities/auth.ts:44

auth capability for Clerk, backed by Clerk’s Backend REST API.

  • Auth

new ClerkAuth(client, _opts?): ClerkAuth

Defined in: plugins/holocron-plugin-clerk/src/capabilities/auth.ts:50

() => object

ClerkAuthOptions = {}

ClerkAuth

readonly key: "auth"

Defined in: plugins/holocron-plugin-clerk/src/capabilities/auth.ts:46

Capability key; always "auth".

Auth.key


readonly providerName: "clerk" = "clerk"

Defined in: plugins/holocron-plugin-clerk/src/capabilities/auth.ts:48

Provider name; always "clerk".

Auth.providerName

createUser(input): Promise<AuthUser>

Defined in: plugins/holocron-plugin-clerk/src/capabilities/auth.ts:124

Seed a user (test fixtures, admin bootstrap).

CreateAuthUserInput

Promise<AuthUser>

Auth.createUser


describe(): Promise<AuthDescription>

Defined in: plugins/holocron-plugin-clerk/src/capabilities/auth.ts:57

Env-var keys the runtime app needs.

Promise<AuthDescription>

Auth.describe


ensureRelaySource(input): Promise<EnsureRelaySourceResult>

Defined in: plugins/holocron-plugin-clerk/src/capabilities/auth.ts:107

Clerk is the one relay source with a manual step (spec tech-relay-sources). Clerk delivers through Svix and neither the Backend API nor the Platform API has a route that makes an endpoint, lists them or returns a whsec_ signing secret (checked 2026-11-19: POST/DELETE /webhooks/svix and POST /webhooks/svix_url are the only webhook routes). So this makes sure the instance’s Svix app exists (idempotent) and returns a todo naming the dashboard steps; it never returns a secret and never creates an endpoint. Once the endpoint is made and COMLINK_CLERK_SECRET is synced, set options.confirmed: true on the source in the layout to stop the todo.

EnsureRelaySourceInput

Promise<EnsureRelaySourceResult>

Auth.ensureRelaySource


ensureWebhookApp(): Promise<{ alreadyExists: boolean; }>

Defined in: plugins/holocron-plugin-clerk/src/capabilities/auth.ts:76

Idempotent webhook backend provisioning (Clerk: Svix app).

Promise<{ alreadyExists: boolean; }>

Auth.ensureWebhookApp


getWebhookDashboardUrl(): Promise<WebhookDashboardInfo>

Defined in: plugins/holocron-plugin-clerk/src/capabilities/auth.ts:88

Deep-link to the provider’s webhook config dashboard.

Promise<WebhookDashboardInfo>

Auth.getWebhookDashboardUrl


whoami(): Promise<AuthIdentity>

Defined in: plugins/holocron-plugin-clerk/src/capabilities/auth.ts:66

Reachability probe — proves the configured key works.

Promise<AuthIdentity>

Auth.whoami