Skip to main content

Function: discoverOidcConfiguration()

discoverOidcConfiguration(issuer): Promise<OidcDiscoveryDocument>

Defined in: Oidc/discovery.ts:22

Fetches and parses an OpenID Connect discovery document from <issuer>/.well-known/openid-configuration (per the OIDC Discovery 1.0 spec, which Entra ID, Okta, and every standards-compliant OIDC provider implement).

Throws when the endpoint is unreachable, returns a non-2xx status, or the document is missing jwks_uri — there is no way to verify tokens without it.

Parameters

ParameterType
issuerstring

Returns

Promise<OidcDiscoveryDocument>