Skip to content

AdminAuthAdapterOptions

AdminAuthAdapterOptions = object

Defined in: packages/admin/src/admin-auth-adapter.ts:22

Options for createAdminAuthAdapter.

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).

AuthInstanceLike

getAuth: () => initAuth({ d1: env.get().DB, appUrl: env.get().APP_URL })