ClerkAuth
Defined in: plugins/holocron-plugin-clerk/src/capabilities/auth.ts:44
auth capability for Clerk, backed by Clerk’s Backend REST API.
Implements
Section titled “Implements”Auth
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ClerkAuth(
client,_opts?):ClerkAuth
Defined in: plugins/holocron-plugin-clerk/src/capabilities/auth.ts:50
Parameters
Section titled “Parameters”client
Section titled “client”() => object
_opts?
Section titled “_opts?”ClerkAuthOptions = {}
Returns
Section titled “Returns”ClerkAuth
Properties
Section titled “Properties”
readonlykey:"auth"
Defined in: plugins/holocron-plugin-clerk/src/capabilities/auth.ts:46
Capability key; always "auth".
Implementation of
Section titled “Implementation of”Auth.key
providerName
Section titled “providerName”
readonlyproviderName:"clerk"="clerk"
Defined in: plugins/holocron-plugin-clerk/src/capabilities/auth.ts:48
Provider name; always "clerk".
Implementation of
Section titled “Implementation of”Auth.providerName
Methods
Section titled “Methods”createUser()
Section titled “createUser()”createUser(
input):Promise<AuthUser>
Defined in: plugins/holocron-plugin-clerk/src/capabilities/auth.ts:124
Seed a user (test fixtures, admin bootstrap).
Parameters
Section titled “Parameters”CreateAuthUserInput
Returns
Section titled “Returns”Promise<AuthUser>
Implementation of
Section titled “Implementation of”Auth.createUser
describe()
Section titled “describe()”describe():
Promise<AuthDescription>
Defined in: plugins/holocron-plugin-clerk/src/capabilities/auth.ts:57
Env-var keys the runtime app needs.
Returns
Section titled “Returns”Promise<AuthDescription>
Implementation of
Section titled “Implementation of”Auth.describe
ensureRelaySource()
Section titled “ensureRelaySource()”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.
Parameters
Section titled “Parameters”EnsureRelaySourceInput
Returns
Section titled “Returns”Promise<EnsureRelaySourceResult>
Implementation of
Section titled “Implementation of”Auth.ensureRelaySource
ensureWebhookApp()
Section titled “ensureWebhookApp()”ensureWebhookApp():
Promise<{alreadyExists:boolean; }>
Defined in: plugins/holocron-plugin-clerk/src/capabilities/auth.ts:76
Idempotent webhook backend provisioning (Clerk: Svix app).
Returns
Section titled “Returns”Promise<{ alreadyExists: boolean; }>
Implementation of
Section titled “Implementation of”Auth.ensureWebhookApp
getWebhookDashboardUrl()
Section titled “getWebhookDashboardUrl()”getWebhookDashboardUrl():
Promise<WebhookDashboardInfo>
Defined in: plugins/holocron-plugin-clerk/src/capabilities/auth.ts:88
Deep-link to the provider’s webhook config dashboard.
Returns
Section titled “Returns”Promise<WebhookDashboardInfo>
Implementation of
Section titled “Implementation of”Auth.getWebhookDashboardUrl
whoami()
Section titled “whoami()”whoami():
Promise<AuthIdentity>
Defined in: plugins/holocron-plugin-clerk/src/capabilities/auth.ts:66
Reachability probe — proves the configured key works.
Returns
Section titled “Returns”Promise<AuthIdentity>
Implementation of
Section titled “Implementation of”Auth.whoami