Sanity Library Reference Docs
    Preparing search index...

    Variable handleOAuthCallbackConst

    handleOAuthCallback: BoundStoreAction<
        AuthStoreState,
        [locationHref: string],
        Promise<string | false>,
    > = ...

    Handles the OAuth redirect callback: validates state, surfaces error responses, exchanges the authorization code for tokens, persists them, and transitions to LOGGED_IN.

    Returns the callback URL cleaned of OAuth params (for the caller to history.replaceState) when a callback was processed, or false when there was nothing to handle (no code, or an exchange already in progress).