/**
* Layer 1: Identity Providers
*
* This module provides identity providers for MCP client authentication.
* Identity providers authenticate users and return profile information.
*
* Supported providers:
* - Google OAuth (default)
* - Microsoft Entra (Azure AD)
* - GitHub OAuth
*
* Usage:
* import { type UserIdentity, GOOGLE_CONFIG, MICROSOFT_CONFIG, GITHUB_CONFIG } from './identity';
* import { buildGoogleAuthUrl, fetchGoogleUserInfo } from './identity/google';
* import { buildMicrosoftAuthUrl, fetchMicrosoftUserInfo } from './identity/microsoft';
* import { buildGitHubAuthUrl, fetchGitHubUserInfo } from './identity/github';
*/
// Re-export types
export * from './types';
// Re-export Google identity functions
export {
buildGoogleAuthUrl,
fetchGoogleUserInfo,
refreshAccessToken as refreshGoogleToken,
getUpstreamAuthorizeUrl,
fetchUpstreamAuthToken,
} from './google';
// Re-export Microsoft identity functions
export {
buildMicrosoftAuthUrl,
exchangeMicrosoftCode,
refreshMicrosoftToken,
fetchMicrosoftUserInfo,
fetchMicrosoftProfilePhoto,
MICROSOFT_IDENTITY_SCOPES,
} from './microsoft';
// Re-export GitHub identity functions
export {
buildGitHubAuthUrl,
exchangeGitHubCode,
fetchGitHubUserInfo,
fetchGitHubPrimaryEmail,
GITHUB_IDENTITY_SCOPES,
} from './github';