tutti-api - v2.1.0
    Preparing search index...

    Function runLoginFlow

    • Drive the Auth0 authorization-code + PKCE login headlessly: start the flow, fetch the hosted login page, solve its captcha via the provider, submit credentials, follow the redirects to the authorization code, and exchange it for tokens. Returns the OAuth tokens (the access_token is then traded for a tutti session via /account/authenticateJWT).

      Parameters

      • opts: {
            captcha: CaptchaProvider;
            config: OAuthConfig;
            credentials: LoginCredentials;
            fetch: {
                (input: URL | RequestInfo, init?: RequestInit): Promise<Response>;
                (input: string | URL | Request, init?: RequestInit): Promise<Response>;
            };
        }
        • captcha: CaptchaProvider
        • config: OAuthConfig
        • credentials: LoginCredentials
        • fetch: {
              (input: URL | RequestInfo, init?: RequestInit): Promise<Response>;
              (input: string | URL | Request, init?: RequestInit): Promise<Response>;
          }

      Returns Promise<OAuthTokens>