npm / openid-client
openid-client
What changed in openid-client 5 to 6, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-20.
29 breaking1 security2 new APIs and options1 behavior and defaults15 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initopenid-client 630 changes
Breaking changes 11
Decrypting assertions is limited to only a few algorithms.
Dynamic Client Management is no longer supported.
Dynamic Client Registration is no longer supported.
Issuing encrypted assertions is no longer supported.
The module uses ES2022 syntax, so the JavaScript runtime must support it.
The package is now an ESM module, changing how it is loaded by projects.
Node.js versions 20.x and newer have all the necessary globals.
The module was completely rewritten with a drastically changed API focused on runtime compatibility, tree-shakeability, and fewer options.
The full cartesian matrix of response types and response modes is no longer supported.
Self-Issued OpenID Provider responses are no longer supported.
The JavaScript runtime must provide WebCryptoAPI and Fetch API globals.
Security 1
One-time state is deleted on callback, preventing it from persisting after use.
New APIs and options 2
Adds getDecryptedResponses.
The custom fetch types now expose the duplex option.
Behavior and default changes 1
CJS-style require is possible when process.features.require_module is true.
Fixes and other changes 15
Types now support TypeScript's exactOptionalPropertyTypes option.
Clock settings are preserved across DCR nonce retries.
The default HTTP request timeout is now applied.
When kid is omitted, decryption selects a unique key.
Caches for lazy client authentication handlers are isolated.
Rejected async verification callbacks are now handled.
Abort signals are retained through response processing during polling.
Token lifetimes are calculated using elapsed time.
The claims helper can now be destructured.
Avoids an undefined user-agent in fetchProtectedResource.
Generic grants retry DPoP nonce errors.
JWE decryption keys are filtered by algorithm.
Optional non-repudiation is applied on generic grant ID Tokens.
Abort signals from polls are preserved on requests.
Uses duplex: half when fetchProtectedResource receives a ReadableStream body.
openid-client 518 changes
Breaking changes 18
DPoP inputs must be a private crypto.KeyObject or valid crypto.createPrivateKey input.
The default algorithms are now PS256 rather than RS256.
grant_types now defaults according to the default response_types.
response_types now defaults to id_token code, with grant_types set accordingly.
tls_client_certificate_bound_access_tokens now defaults to true.
No token_endpoint_auth_method is set by default; one must be set explicitly.
FAPIClient was renamed to FAPI1Client.
Customization callbacks now receive a URL instance first and the HTTP request options object second.
Customization recognizes only standard Node http/https request options; got-specific options such as followRedirect, retry, and throwHttpErrors are no longer recognized.
Issuer.discover no longer attempts the OAuth authorization server well-known URL automatically; pass the full well-known URL to load such discovery documents.
Issuer.prototype.keystore is now private API.
Support for Node.js v10.x was dropped; supported releases are LTS Erbium (^12.19.0) and newer.
The Registry public API export was removed.
An Access Token is now asserted to be present for requestResource calls.
The response property on some RPError or OPError instances is now an http.IncomingMessage; its body is JSON when parseable, otherwise a Buffer.
The client method was removed with no replacement.
An Access Token is now asserted to be present for userinfo calls.
The query way of passing an access token to userinfo was removed.