Releases: curveball/oauth2
Releases · curveball/oauth2
v1.0.1
v1.0.0
- Finally! Curveball v1. Only took 6 years.
- CommonJS support has been dropped. The previous version of this library supported both CommonJS and ESM. The effort of this no longer feels worth it. ESM is the future, so we're dropping CommonJS.
- Now requires Node 18.
- Upgraded to Typescript 5.3.
- Removed node-fetch. All versions of Node supported by this library have a built-in fetch now
v0.5.0
v0.4.1
v0.4.0
v0.3.4
This is the version stable 0.3 release, and is backwards compatibility breaking.
Both this package and @curveball/browser-to-bearer now use the @badgateway/oauth2-client library for OAuth2 plumbing.
Setting up this middleware now requires an instance of the OAuth2Client class to be provided, instead of providing all the individual settings.
One advantage is that it can piggyback on all of oauth2-client features, in particular this adds support for:
- PKCE
- Endpoint discovery
It also changes how you get information about the current principal. This is now in ctx.auth
. Check out the readme for the docs!