mcp-use
Version:
Opinionated MCP Framework for TypeScript (@modelcontextprotocol/sdk compatible) - Build MCP Agents, Clients and Servers with support for ChatGPT Apps, Code Mode, OAuth, Notifications, Sampling, Observability and more.
21 lines • 720 B
TypeScript
/**
* Custom OAuth Provider
*
* Allows users to implement custom OAuth providers with their own
* JWT verification logic and user info extraction.
*/
import type { OAuthProvider, UserInfo, CustomOAuthConfig } from "./types.js";
export declare class CustomOAuthProvider implements OAuthProvider {
private config;
constructor(config: CustomOAuthConfig);
verifyToken(token: string): Promise<{
payload: Record<string, unknown>;
}>;
getUserInfo(payload: Record<string, unknown>): UserInfo;
getIssuer(): string;
getAuthEndpoint(): string;
getTokenEndpoint(): string;
getScopesSupported(): string[];
getGrantTypesSupported(): string[];
}
//# sourceMappingURL=custom.d.ts.map