Skip to main content

start_oauth

Function start_oauth 

Source
pub(super) async fn start_oauth(
    mstore: Arc<Store>,
    identity_store: Arc<Store>,
    data: Value,
) -> Result<AccountOAuthStartResult, String>
Expand description

Resolve config and client (gating on “not configured”), spawn the flow, return the session id and its first status. Poll and cancel drive the rest. With accountId it authorizes that account again (more scopes, or a reconnect) instead of creating one: spec G0 of docs/specs/SPEC_GOOGLE_CONNECTORS_GMAIL_CALENDAR_DRIVE_2026_10_14.md.