@shortcut/client
    Preparing search index...

    Interface ShortcutOAuthOptions

    interface ShortcutOAuthOptions {
        baseUrl?: string;
        clientId: string;
        clientSecret: string;
        fetch?: (
            input: string | URL | Request,
            init?: RequestInit,
        ) => Promise<Response>;
        redirectUri?: string;
        timeoutMs?: number;
    }
    Index

    Properties

    baseUrl?: string

    API origin. Defaults to production.

    clientId: string
    clientSecret: string
    fetch?: (input: string | URL | Request, init?: RequestInit) => Promise<Response>
    redirectUri?: string

    Must match the redirect URI registered on the agent app. Required for code exchange.

    timeoutMs?: number

    Milliseconds each token request, including reading its body, may take before it is aborted with a TimeoutError. Defaults to 30 000; pass Infinity to disable.