context/index.ts

better-auth · packages/core/src/context/index.ts · typescript · MIT
auth, tag:embed-classified

Exports core authentication context utilities for better-auth library.

// Source: https://github.com/better-auth/better-auth | License: MIT | Copyright 2024 - present, Bereket Engida
// Provided via justclaw.it.com; keep this notice with the code.
export {
	type AuthEndpointContext,
	getCurrentAuthContext,
	getCurrentAuthContextAsyncLocalStorage,
	getCurrentAuthEndpointContext,
	runWithEndpointContext,
	tryGetCurrentAuthEndpointContext,
} from "./endpoint-context";
export { getBetterAuthVersion } from "./global";
export {
	defineRequestState,
	getCurrentRequestState,
	getRequestStateAsyncLocalStorage,
	hasRequestState,
	type RequestState,
	type RequestStateWeakMap,
	runWithRequestState,
} from "./request-state";
export {
	getCurrentAdapter,
	getCurrentDBAdapterAsyncLocalStorage,
	queueAfterTransactionHook,
	runWithAdapter,
	runWithTransaction,
} from "./trans

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key