Skip to content

ShelfAuthInstance

Defined in: packages/auth/src/engine.ts:211

Subset of the Better Auth instance surface the shelf uses.

api: object

Defined in: packages/auth/src/engine.ts:214

getSession(input): Promise<{ user: EngineSessionUser; } | null>

Resolve the session user from request headers (null when anonymous).

Headers

Promise<{ user: EngineSessionUser; } | null>

signOut(input): Promise<unknown>

Revoke the session carried by the headers.

Headers

Promise<unknown>


handler: (request) => Response | Promise<Response>

Defined in: packages/auth/src/engine.ts:213

HTTP handler (mount at /api/auth/*).

Request

Response | Promise<Response>