@nebius/js-sdk - v0.2.54
    Preparing search index...
    • Completes the interactive OAuth authorization-code flow with PKCE.

      This combines getCode and getToken. timeoutMs applies to the wait for the browser callback. Set noBrowserOpen to print the URL without launching a browser.

      Parameters

      • params: {
            ca?: string | string[] | Buffer<ArrayBufferLike>;
            clientId: string;
            federationEndpoint: string;
            federationId: string;
            logger?: Logger;
            noBrowserOpen?: boolean;
            timeoutMs?: number;
            writer?: (s: string) => void;
        }
        • Optionalca?: string | string[] | Buffer<ArrayBufferLike>

          Contains the CA.

        • clientId: string

          Contains the client ID.

        • federationEndpoint: string

          Contains the federation endpoint.

        • federationId: string

          Contains the federation ID.

        • Optionallogger?: Logger

          Contains the logger.

        • OptionalnoBrowserOpen?: boolean

          Contains the no browser open.

        • OptionaltimeoutMs?: number

          Contains the timeout ms.

        • Optionalwriter?: (s: string) => void

          Contains the writer.

      Returns Promise<GetTokenResult>