unstale

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 init

@unstale/cli on npm

openid-client 630 changes

Breaking changes 11

  • Decrypting assertions is limited to only a few algorithms.

    6.0.0release notes

  • Dynamic Client Management is no longer supported.

    6.0.0release notes

  • Dynamic Client Registration is no longer supported.

    6.0.0release notes

  • Issuing encrypted assertions is no longer supported.

    6.0.0release notes

  • The module uses ES2022 syntax, so the JavaScript runtime must support it.

    6.0.0release notes

  • The package is now an ESM module, changing how it is loaded by projects.

    6.0.0release notes

  • Node.js versions 20.x and newer have all the necessary globals.

    6.0.0release notes

  • The module was completely rewritten with a drastically changed API focused on runtime compatibility, tree-shakeability, and fewer options.

    6.0.0release notes

  • The full cartesian matrix of response types and response modes is no longer supported.

    6.0.0release notes

  • Self-Issued OpenID Provider responses are no longer supported.

    6.0.0release notes

  • The JavaScript runtime must provide WebCryptoAPI and Fetch API globals.

    6.0.0release notes

Security 1

  • One-time state is deleted on callback, preventing it from persisting after use.

    6.8.3release notes

New APIs and options 2

Behavior and default changes 1

  • CJS-style require is possible when process.features.require_module is true.

    6.0.0release notes

Fixes and other changes 15

  • Types now support TypeScript's exactOptionalPropertyTypes option.

    6.8.9release notes

  • Clock settings are preserved across DCR nonce retries.

    6.8.8release notes

  • The default HTTP request timeout is now applied.

    6.8.8release notes

  • When kid is omitted, decryption selects a unique key.

    6.8.8release notes

  • Caches for lazy client authentication handlers are isolated.

    6.8.8release notes

  • Rejected async verification callbacks are now handled.

    6.8.8release notes

  • Abort signals are retained through response processing during polling.

    6.8.8release notes

  • Token lifetimes are calculated using elapsed time.

    6.8.8release notes

  • The claims helper can now be destructured.

    6.8.7release notes

  • Avoids an undefined user-agent in fetchProtectedResource.

    6.8.6release notes

  • Generic grants retry DPoP nonce errors.

    6.8.4release notes

  • JWE decryption keys are filtered by algorithm.

    6.8.4release notes

  • Optional non-repudiation is applied on generic grant ID Tokens.

    6.8.4release notes

  • Abort signals from polls are preserved on requests.

    6.8.4release notes

  • Uses duplex: half when fetchProtectedResource receives a ReadableStream body.

    6.8.2release notes

openid-client 518 changes

Breaking changes 18

  • DPoP inputs must be a private crypto.KeyObject or valid crypto.createPrivateKey input.

    5.0.0release notes

  • The default algorithms are now PS256 rather than RS256.

    5.0.0release notes

  • grant_types now defaults according to the default response_types.

    5.0.0release notes

  • response_types now defaults to id_token code, with grant_types set accordingly.

    5.0.0release notes

  • tls_client_certificate_bound_access_tokens now defaults to true.

    5.0.0release notes

  • No token_endpoint_auth_method is set by default; one must be set explicitly.

    5.0.0release notes

  • FAPIClient was renamed to FAPI1Client.

    5.0.0release notes

  • Customization callbacks now receive a URL instance first and the HTTP request options object second.

    5.0.0release notes

  • Customization recognizes only standard Node http/https request options; got-specific options such as followRedirect, retry, and throwHttpErrors are no longer recognized.

    5.0.0release notes

  • Issuer.discover no longer attempts the OAuth authorization server well-known URL automatically; pass the full well-known URL to load such discovery documents.

    5.0.0release notes

  • Issuer.prototype.keystore is now private API.

    5.0.0release notes

  • Support for Node.js v10.x was dropped; supported releases are LTS Erbium (^12.19.0) and newer.

    5.0.0release notes

  • The Registry public API export was removed.

    5.0.0release notes

  • An Access Token is now asserted to be present for requestResource calls.

    5.0.0release notes

  • The response property on some RPError or OPError instances is now an http.IncomingMessage; its body is JSON when parseable, otherwise a Buffer.

    5.0.0release notes

  • The client method was removed with no replacement.

    5.0.0release notes

  • An Access Token is now asserted to be present for userinfo calls.

    5.0.0release notes

  • The query way of passing an access token to userinfo was removed.

    5.0.0release notes