Skip to content

Releases: awslabs/aws-jwt-verify

v2.1.1

26 Jan 08:56
68b017f
Compare
Choose a tag to compare
  • FIXED: #47 When using type CognitoJwtVerifierSingleUserPool, getting compile error: "Types have separate declarations of a private property 'jwksCache'"

Full Changelog: v2.1.0...v2.1.1

v2.1.0

13 Jan 12:53
b81fe64
Compare
Choose a tag to compare

What's Changed

Full Changelog: v2.0.0...v2.1.0

v2.0.0

17 Dec 09:55
f844a1b
Compare
Choose a tag to compare

Noteworthy changes

  • It's now possible to include the raw JWT in verification errors (#27)
  • Enable tsdoc hints when creating the verifier, to help the user understand the configuration options (#11) :

image

These changes are BREAKING changes for some usage patterns, therefore this release increments the major version number to 2.0.0:

  • To enable tsdoc hints in #11 we refactored various TypeScript types. You'll only notice that, if you were explicitly importing the now refactored types. If you don't know if you did, you probably didn't, in which case this change isn't breaking for you. (All example code from README.md remains valid without any change).
  • As part of #27 we've split out the errors that my be thrown when checking claims. Instead of a generic AssertionError more specific errors are now thrown (e.g. JwtInvalidScopeError). If you weren't explicitly testing for error type (e.g. doing err instance of AssertionError) this change isn't breaking for you.

Full Changelog: v1.0.3...v2.0.0

v1.0.3

03 Nov 09:37
e9919f6
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.0.2...v1.0.3

v1.0.2

01 Nov 10:45
34b70da
Compare
Choose a tag to compare

Functional changes (all non-breaking):

Allow "aud" claim to be an array of strings (#14)
This makes the library compatible with JWTs from Auth0

Expose error module so it may be imported (#12)
If you want to catch this library's exceptions, you may want to import them (and use instanceof), this is now possible.

v1.0.1

07 Oct 15:05
f0531cd
Compare
Choose a tag to compare

First public release 🎉