Skip to content

Releases: koajs/jwt

v2.2.4

30 Mar 20:30
@sdd sdd
Compare
Choose a tag to compare

This is a patch release on the 2.x branch as 2.2.3 was inadvertently published with a dependency on node > 7.6. The 2.x versions of koa-js only require node 4.

v1.3.2

30 Mar 21:21
@sdd sdd
Compare
Choose a tag to compare

Patch release to fix broken tests on the old koa-v1 branch. The package.json had a koa dev dependency on latest, which is now koa v2.

v3.1.0

29 Mar 19:15
@sdd sdd
Compare
Choose a tag to compare

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

18 Mar 14:26
@sdd sdd
Compare
Choose a tag to compare

Patch release due to an update to koa-unless breaking koa-jwt.

See #88

v3.0.0

06 Mar 19:09
@sdd sdd
Compare
Choose a tag to compare

This latest release contains some long-awaited 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

01 Mar 08:16
@sdd sdd
Compare
Choose a tag to compare

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

v2.2.1

25 Jan 07:50
@sdd sdd
Compare
Choose a tag to compare
  • Prevent default value for opts.tokenKey from overwriting ctx.state.token (Issue #77 PR #78)

v2.2.0

23 Jan 08:15
@sdd sdd
Compare
Choose a tag to compare
  • provide raw token on state by specifying opts.tokenKey
  • use typeof instead of util.isFunction
  • fix bug when Authorization header is two words but the first is not Bearer

See #72 for other changes not related to functionality

v1.3.0

23 Jan 08:08
@sdd sdd
Compare
Choose a tag to compare
  • provide raw token on state by specifying opts.tokenKey
  • use typeof instead of util.isFunction
  • fix bug when Authorization header is two words but the first is not Bearer

v1.2.0

02 May 16:41
Compare
Choose a tag to compare

Added support for getToken function.