Skip to content

Releases: panva/jose

v4.13.0

27 Feb 17:23
Compare
Choose a tag to compare

Features

  • types: allow generics to aid in CryptoKey or KeyObject narrowing of KeyLike (6effa4d)

Fixes

  • make jose.EmbeddedJWK arguments optional (20610a9)

v4.12.2

27 Feb 13:34
Compare
Choose a tag to compare

Fixes

  • types: declare explicit return from EmbeddedJWK (46934ac)

v4.12.1

27 Feb 12:48
Compare
Choose a tag to compare

Refactor

  • clarify when alg is used and required on key imports (19e525f)
  • node: have node:crypto deal with x509 parsing (45bb45d)

v4.12.0

15 Feb 12:37
Compare
Choose a tag to compare

Features

  • enable key iteration over JWKSMultipleMatchingKeys (a278acd)
const JWKS = jose.createRemoteJWKSet(new URL('https://www.googleapis.com/oauth2/v3/certs'))

const options = {
  issuer: 'urn:example:issuer',
  audience: 'urn:example:audience',
}
const { payload, protectedHeader } = await jose
  .jwtVerify(jwt, JWKS, options)
  .catch(async (error) => {
    if (error?.code === 'ERR_JWKS_MULTIPLE_MATCHING_KEYS') {
      for await (const publicKey of error) {
        try {
          return await jose.jwtVerify(jwt, publicKey, options)
        } catch (innerError) {
          if (innerError?.code === 'ERR_JWS_SIGNATURE_VERIFICATION_FAILED') {
            continue
          }
          throw innerError
        }
      }
      throw new jose.errors.JWSSignatureVerificationFailed()
    }

    throw error
  })
console.log(protectedHeader)
console.log(payload)

v4.11.4

07 Feb 11:19
Compare
Choose a tag to compare

Fixes

  • build: ignore deno files in npm publishes (b3d6a11)

v4.11.3

07 Feb 10:20
Compare
Choose a tag to compare

Fixes

  • CF Workers: improve miniflare compat with different Node.js versions, get ready for future non-proprietary support (3406b9f), closes #446 #495 #497

v4.11.2

01 Jan 17:26
Compare
Choose a tag to compare

Refactor

  • node: dry node version checks (aff2f7c)

v4.11.1

22 Nov 11:24
Compare
Choose a tag to compare

This release contains only code refactoring, documentation updates, and Node.js CITGM related test updates.

v4.11.0

08 Nov 08:57
Compare
Choose a tag to compare

Features

  • add bun as a supported runtime (3a63631)

Fixes

  • respect JWK ext for symmetric keys (20557fc)

v4.10.4

28 Oct 14:12
Compare
Choose a tag to compare

Fixes

  • typo in importPKSC8 error message (#468) (746bc64)
  • workaround for invalid use checks on CF Workers and Deno (e4d04eb)