/opt/canhelp/node_modules/better-auth/dist/plugins/bearer
Edit: /opt/canhelp/node_modules/better-auth/dist/plugins/bearer/index.d.mts (1254B)
import * as _better_auth_core0 from "@better-auth/core";
import * as better_call0 from "better-call";
//#region src/plugins/bearer/index.d.ts
declare module "@better-auth/core" {
interface BetterAuthPluginRegistry
{
bearer: {
creator: typeof bearer;
};
}
}
interface BearerOptions {
/**
* If true, only signed tokens
* will be converted to session
* cookies
*
* @default false
*/
requireSignature?: boolean | undefined;
}
/**
* Converts bearer token to session cookie
*/
declare const bearer: (options?: BearerOptions | undefined) => {
id: "bearer";
hooks: {
before: {
matcher(context: _better_auth_core0.HookEndpointContext): boolean;
handler: (inputContext: better_call0.MiddlewareInputContext) => Promise<{
context: {
headers: Headers;
};
} | undefined>;
}[];
after: {
matcher(context: _better_auth_core0.HookEndpointContext): true;
handler: (inputContext: better_call0.MiddlewareInputContext) => Promise;
}[];
};
options: BearerOptions | undefined;
};
//#endregion
export { BearerOptions, bearer };
//# sourceMappingURL=index.d.mts.map