msexchange-mcp
Version:
MCP server for Microsoft Exchange/Outlook email operations via Microsoft Graph API
29 lines • 903 B
TypeScript
import { Client } from '@microsoft/microsoft-graph-client';
import { IAuthService } from './authInterface.js';
interface AuthConfig {
clientId: string;
tenantId: string;
tokenRefresh: {
bufferMinutes: number;
checkIntervalMinutes: number;
autoRefreshEnabled: boolean;
};
keyVault: {
vaultUri?: string;
enabled: boolean;
};
}
export declare class AuthService implements IAuthService {
private msalClients;
private config;
private keyVaultUri?;
constructor(config: AuthConfig);
private getMsalClient;
getTokenForUser(userEmail: string): Promise<string>;
forceTokenRefresh(userEmail: string): Promise<string>;
clearTokenCache(userEmail: string): Promise<void>;
clearAllTokens(): Promise<void>;
getGraphClient(accessToken: string): Client;
}
export {};
//# sourceMappingURL=authService-keyvault.d.ts.map