@xmcp-dev/better-auth
Version:
Better Auth integration for xmcp
12 lines • 633 B
TypeScript
import { IncomingHttpHeaders } from "http";
import { BetterAuthInstanceWithMcp } from "./provider.js";
interface BetterAuthContext {
api: BetterAuthInstanceWithMcp["api"];
headers: IncomingHttpHeaders;
}
export declare const betterAuthContext: import("xmcp/dist/utils/context.js").Context<BetterAuthContext>;
export declare const setBetterAuthContext: (data: Partial<BetterAuthContext>) => void;
export declare const getBetterAuthContext: () => BetterAuthContext;
export declare const betterAuthContextProvider: (initialValue: BetterAuthContext, callback: () => void) => void;
export {};
//# sourceMappingURL=context.d.ts.map