Skip to main content
Version: Next

Function: defineAuthProviderManifest()

defineAuthProviderManifest(manifest): ExternalAuthProviderManifest

EXPERIMENTAL. Defines an external auth provider manifest.

This is the function auth adapter packages call from their spec helpers (clerk(), betterAuth(), ...). It normalizes the manifest, validates it, and stamps it as authentic -- the compiler rejects hand-crafted manifest object literals so that every manifest in circulation went through these checks.

App developers normally never call this directly: use an adapter package's spec helper, or customAuthProvider for a hand-written adapter.

Parameters

manifest

AuthProviderManifestInput

Returns

ExternalAuthProviderManifest