Auth
Defined in: cli/cli/src/plugin/capabilities/capabilities.type.ts:1580
An identity provider: describes what an app needs from it, proves the credentials work and, where the provider allows, manages users and webhooks.
Extends
Section titled “Extends”ProviderIdentityRelaySourceMethods
Properties
Section titled “Properties”
readonlykey:"auth"
Defined in: cli/cli/src/plugin/capabilities/capabilities.type.ts:1582
Identifies this provider as the auth capability.
Overrides
Section titled “Overrides”ProviderIdentity.key
providerName
Section titled “providerName”
readonlyproviderName:string
Defined in: cli/cli/src/plugin/capabilities/capabilities.type.ts:56
The provider’s name, e.g. github or vercel.
Inherited from
Section titled “Inherited from”ProviderIdentity.providerName
Methods
Section titled “Methods”createUser()?
Section titled “createUser()?”
optionalcreateUser(input):Promise<AuthUser>
Defined in: cli/cli/src/plugin/capabilities/capabilities.type.ts:1599
Seed a user (test fixtures, admin bootstrap).
Parameters
Section titled “Parameters”CreateAuthUserInput
Returns
Section titled “Returns”Promise<AuthUser>
describe()
Section titled “describe()”describe():
Promise<AuthDescription>
Defined in: cli/cli/src/plugin/capabilities/capabilities.type.ts:1585
Env-var keys the runtime app needs.
Returns
Section titled “Returns”Promise<AuthDescription>
ensureRelaySource()?
Section titled “ensureRelaySource()?”
optionalensureRelaySource(input):Promise<EnsureRelaySourceResult>
Defined in: cli/cli/src/plugin/capabilities/capabilities.type.ts:1881
Make or adopt the vendor’s webhook for input.url and say what was done, with the secret when it was just set.
Parameters
Section titled “Parameters”EnsureRelaySourceInput
Returns
Section titled “Returns”Promise<EnsureRelaySourceResult>
Inherited from
Section titled “Inherited from”RelaySourceMethods.ensureRelaySource
ensureWebhookApp()?
Section titled “ensureWebhookApp()?”
optionalensureWebhookApp():Promise<{alreadyExists:boolean; }>
Defined in: cli/cli/src/plugin/capabilities/capabilities.type.ts:1593
Idempotent webhook backend provisioning (Clerk: Svix app).
Returns
Section titled “Returns”Promise<{ alreadyExists: boolean; }>
getWebhookDashboardUrl()?
Section titled “getWebhookDashboardUrl()?”
optionalgetWebhookDashboardUrl():Promise<WebhookDashboardInfo>
Defined in: cli/cli/src/plugin/capabilities/capabilities.type.ts:1596
Deep-link to the provider’s webhook config dashboard.
Returns
Section titled “Returns”Promise<WebhookDashboardInfo>
inspectRelaySource()?
Section titled “inspectRelaySource()?”
optionalinspectRelaySource(input):Promise<RelaySourceState>
Defined in: cli/cli/src/plugin/capabilities/capabilities.type.ts:1883
Read the webhook back without changing anything (holocron doctor notifications). Never reads the secret.
Parameters
Section titled “Parameters”InspectRelaySourceInput
Returns
Section titled “Returns”Promise<RelaySourceState>
Inherited from
Section titled “Inherited from”RelaySourceMethods.inspectRelaySource
syncWebhook()?
Section titled “syncWebhook()?”
optionalsyncWebhook(input):Promise<void>
Defined in: cli/cli/src/plugin/capabilities/capabilities.type.ts:1602
Wire the auth provider’s webhook into the project’s repo.
Parameters
Section titled “Parameters”string
secretRef
Section titled “secretRef”string
Returns
Section titled “Returns”Promise<void>
whoami()
Section titled “whoami()”whoami():
Promise<AuthIdentity>
Defined in: cli/cli/src/plugin/capabilities/capabilities.type.ts:1588
Reachability probe — proves the configured key works.
Returns
Section titled “Returns”Promise<AuthIdentity>