@xmcp-dev/better-auth
Version:
Better Auth integration for xmcp
10 lines • 661 B
TypeScript
import { Router, type RequestHandler } from "express";
import { XmcpMiddleware } from "xmcp";
import { BetterAuthConfig } from "./types.js";
declare function getBetterAuthInstance(auth: BetterAuthConfig): any;
export type BetterAuthInstanceWithMcp = ReturnType<typeof getBetterAuthInstance>;
export declare function betterAuthProvider(auth: BetterAuthConfig): XmcpMiddleware;
export declare function betterAuthRouter(betterAuthInstance: BetterAuthInstanceWithMcp, authConfig: BetterAuthConfig): Router;
export declare function betterAuthMiddleware(betterAuthInstance: BetterAuthInstanceWithMcp): RequestHandler;
export {};
//# sourceMappingURL=provider.d.ts.map