@refoldai/refold-js
    Preparing search index...

    Interface OAuthParams

    interface OAuthParams {
        autoClose?: boolean;
        grantType?: GrantType;
        payload?: Record<string, string>;
        slug: string;
        timeout?: number;
    }

    Hierarchy (View Summary)

    Index
    autoClose?: boolean

    Whether to close the authentication window automatically.

    grantType?: GrantType

    The application's OAuth grant (from the app object). Pass GrantType.ClientCredentials for machine-to-machine connectors so their fields are submitted to the server and no browser window is opened. Omit for redirect grants (authorization_code / PKCE), the default.

    payload?: Record<string, string>

    The key value pairs of auth data.

    slug: string

    The application slug.

    timeout?: number

    Maximum time in milliseconds to wait for authentication before giving up. Set to 0 to wait indefinitely. Defaults to 5 minutes.