@nebius/js-sdk - v0.2.54
    Preparing search index...
    • Exchanges an authorization code and PKCE verifier for OAuth tokens.

      The function rejects non-success HTTP responses. Treat the returned access token and optional refresh token as secrets.

      Parameters

      • params: {
            ca?: string | string[] | Buffer<ArrayBufferLike>;
            clientId: string;
            code: string;
            logger?: Logger;
            redirectUri: string;
            tokenEndpoint: string;
            verifier: string;
        }
        • Optionalca?: string | string[] | Buffer<ArrayBufferLike>

          Contains the CA.

        • clientId: string

          Contains the client ID.

        • code: string

          Contains the code.

        • Optionallogger?: Logger

          Contains the logger.

        • redirectUri: string

          Contains the redirect uri.

        • tokenEndpoint: string

          Contains the token endpoint.

        • verifier: string

          Contains the verifier.

      Returns Promise<GetTokenResult>