@modelcontextprotocol/sdk
    Preparing search index...

    Function startAuthorization

    • Begins the authorization flow with the given server, by generating a PKCE challenge and constructing the authorization URL.

      Parameters

      • authorizationServerUrl: string | URL
      • __namedParameters: {
            clientInformation: {
                client_id: string;
                client_id_issued_at?: number;
                client_secret?: string;
                client_secret_expires_at?: number;
            };
            metadata?: AuthorizationServerMetadata;
            redirectUrl: string
            | URL;
            resource?: URL;
            scope?: string;
            state?: string;
        }

      Returns Promise<{ authorizationUrl: URL; codeVerifier: string }>