You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OAuth2 token operations may now return an extraParams property, which is an object with all unrecognized properties. Some servers return custom properties from OAuth2 responses, and this lets users get access to them. (@ericleib, @blarralde)
The OAuth2Token object now has a scope property, containing a list of scopes the server returned if the server returned this. (@ericleib)
#180: The browser build was failing to work for vite and next.js users since v3. This was probably due to the switch to ESM. Instead of trying to fix this problem in Webpack, this library has switched to vite for the minified browser build instead.
#181: Revert back to percent-encoding of the Authorization: Basic header. Even though this was more correct from a standards perspective, this is causing interopability problems with popular real-world OAuth2 servers. If you need strict encoding, you can opt-in using the authorizationMethod option. We recommend using client_secret_post if it's possible with your server. See README.md for more information on this behaviour and what the possible options are.
Support for the OpenID Connect id_token. If a server returns it, we expose it as idToken. This is a JWT and would require parsing by a JWT library to get access to its information. (@drev74, @redguardtoo).
#171: client_id and client_secret are now percent-encoded with the most strict rules as specified by RFC 6749. We weren't doing any percent/urlencoding before. This is a a BC break if your secret used special characters, and the server you're talking is not compliant with the OAuth2 spec itself (@p2004a, @panva).
Migrated the test suite from Mocha and Chai to node:test and node:assert (@Zen-cronic).
Package now uses 'erasableSyntaxOnly' flag with Typescript, so it can be used with node --experimental-strip-types.
Added extraParams option to getAuthorizeUri, allowing users to add non-standard arguments to the authorization URI for servers that require this. (@pks1989)