MCP TypeScript SDK (V2)
    Preparing search index...
    • Looks up RFC 8414 OAuth 2.0 Authorization Server Metadata.

      If the server returns a 404 for the well-known endpoint, this function will return undefined. Any other errors will be thrown as exceptions.

      Parameters

      • issuer: string | URL
      • __namedParameters: { authorizationServerUrl?: string | URL; protocolVersion?: string } = {}
      • fetchFn: FetchLike = fetch

      Returns Promise<
          | {
              authorization_endpoint: string;
              client_id_metadata_document_supported?: boolean;
              code_challenge_methods_supported?: string[];
              grant_types_supported?: string[];
              introspection_endpoint?: string;
              introspection_endpoint_auth_methods_supported?: string[];
              introspection_endpoint_auth_signing_alg_values_supported?: string[];
              issuer: string;
              registration_endpoint?: string;
              response_modes_supported?: string[];
              response_types_supported: string[];
              revocation_endpoint?: string;
              revocation_endpoint_auth_methods_supported?: string[];
              revocation_endpoint_auth_signing_alg_values_supported?: string[];
              scopes_supported?: string[];
              service_documentation?: string;
              token_endpoint: string;
              token_endpoint_auth_methods_supported?: string[];
              token_endpoint_auth_signing_alg_values_supported?: string[];
              [key: string]: unknown;
          }
          | undefined,
      >

      This function is deprecated in favor of discoverAuthorizationServerMetadata.