mcp-s-oauth
Version:
Express middleware library for MCP (Model Context Protocol) OAuth authentication
21 lines • 1.03 kB
TypeScript
import type { Client, ClientInfo, Credentials } from "../types/clients.types.ts";
import type { OAuthCredentials } from "../types/connector.types.js";
export declare function createClient({ client }: {
client: ClientInfo;
}): void;
export declare function getByClientId(client_id: string): Client | null;
export declare function getByAccessToken(access_token: string): Client | null;
export declare function updateCodes({ client_id, code, code_challenge, }: {
client_id: string;
code: string;
code_challenge: string;
}): void;
export declare function getByCode(client_id: string, code: string): Client | null;
export declare function getByRefreshToken(refresh_token: string): Client | null;
export declare function updateCredentials({ client_id, credentials, oauth_credentials, }: {
client_id: string;
credentials: Credentials;
oauth_credentials?: OAuthCredentials;
}): void;
export declare function getOAuthAccessTokenByMcpToken(mcp_access_token: string): string | null;
//# sourceMappingURL=db.d.ts.map