UNPKG

feishu-user-token-mcp-v2

Version:

A Model Context Protocol (MCP) server for Feishu user token management and authentication

16 lines (15 loc) 603 B
interface TokenResponse { access_token: string; refresh_token: string; [key: string]: any; } export interface AuthParams { app_id: string; app_secret: string; user_token?: string; refresh_token?: string; } export declare function getAuthorizationCode(app_id: string, redirectUri: string, timeoutMs?: number): Promise<string>; export declare function refreshAccessToken(refreshToken: string): Promise<TokenResponse>; export declare function getAccessToken({ app_id, app_secret, user_token, refresh_token }: AuthParams, redirectUri: string): Promise<TokenResponse>; export {};