AdminAuthAdapterOptions
AdminAuthAdapterOptions =
object
Defined in: packages/admin/src/admin-auth-adapter.ts:22
Options for createAdminAuthAdapter.
Properties
Section titled “Properties”getAuth()
Section titled “getAuth()”getAuth: () =>
AuthInstanceLike
Defined in: packages/admin/src/admin-auth-adapter.ts:36
Factory that returns an initialized auth instance per invocation.
Called on every admin operation to guarantee fresh env bindings on
Cloudflare Workers. The returned object must satisfy the
AuthInstanceLike structural interface (a subset of @cfast/auth’s
AuthInstance).
Returns
Section titled “Returns”AuthInstanceLike
Example
Section titled “Example”getAuth: () => initAuth({ d1: env.get().DB, appUrl: env.get().APP_URL })