AbstractAbstractrequestInitiates an OAuth authentication flow.
Creates an authentication link that users can click to authorize access to the specified provider with the requested scopes. When authorization completes, the callback will be invoked with the Authorization and any extraArgs.
Authentication configuration
The OAuth provider to authenticate with
The authorization level (priority-scoped or user-scoped)
Array of OAuth scopes to request
Function receiving (authorization, ...extraArgs)
Additional arguments to pass to the callback (type-checked, must be serializable)
Promise resolving to an ActivityLink for the auth flow
AbstractgetRetrieves an access token (refreshing it first if necessary).
Returns null if the authorization is no longer valid or has been revoked.
The authorization from the request callback
Promise resolving to the access token or null if no longer available
Built-in tool for managing OAuth authentication flows.
The Integrations tool provides a unified interface for requesting user authorization from external service providers like Google and Microsoft. It handles the OAuth flow creation, token management, and callback integration.
Example