Function: discoveryRequest()

August 29, 2025 ยท View on GitHub

๐Ÿ’— Help the project

Support from the community to continue maintaining and improving this module is welcome. If you find the module useful, please consider supporting the project by becoming a sponsor.


โ–ธ discoveryRequest(issuerIdentifier, options?): Promise<Response>

Performs an authorization server metadata discovery using one of two transformation algorithms applied to the issuerIdentifier argument.

  • oidc (default) as defined by OpenID Connect Discovery 1.0.
  • oauth2 as defined by RFC 8414.

Parameters

ParameterTypeDescription
issuerIdentifierURLIssuer Identifier to resolve the well-known discovery URI for.
options?DiscoveryRequestOptions-

Returns

Promise<Response>

Resolves with a Response to then invoke processDiscoveryResponse with

See