Authenticate using SSO
Authenticates a user using an external OAuth provider account. Returns a token that can be used for subsequent API requests.
SSO authentication request object containing:
mosaia_user: User information object with id propertyoauth_account: OAuth account information object with:
type: OAuth account type (e.g., 'oauth')provider: OAuth provider name (e.g., 'google', 'github')Promise resolving to SSO response with authentication token
SSO API client for the Mosaia SDK
Provides single sign-on (SSO) authentication functionality for OAuth providers. This allows users to authenticate using external OAuth accounts (Google, GitHub, etc.).
Example