Releases: koajs/jwt
v2.2.4
v1.3.2
v3.1.0
Add the ability to pass a function to opts.secret
. This function is provided with the decoded header from the JWT. It should return a promise that resolves to the secret to use for verification of the token.
The intended use case for this is to allow the use of JWKS via https://github.com/auth0/node-jwks-rsa.
Thanks to @dunnock for the PR.
v3.0.1
v3.0.0
This latest release contains some long-await
ed changes 😁 . Koa v2 has now been published as latest
and requires node >=7.6, which has native async
/await
. This major version bump contains no new functionality, but the following changes:
- Bluebird has been removed in favour of a native promise wrapper around jsonwebtoken
- The complex and hard-to-follow promise chain has been reimplemented using
async / await
- The resolver functions have been moved to their own files
- istanbul replaced with nyc for coverage
If your project is unable to use node >=7.6, then continue to use koa-jwt
v2.x.x.
v2.2.3
Koa version 2 is now tagged as latest
on npm as native async / await
has landed in node 7.6. This release brings us in line with the rest of the koa ecosystem on this.
- remove publishConfig tag so that koa-v2 publishes are tagged as
latest
- set the minimum nodeEngine to 7.6 in package.json
- change install instructions to show next / koa-v2 tags not required on npm install
- update Travis config to test against node 7.6 and above