Skip to content

Releases: badgateway/oauth2-client

v2.4.2

14 Sep 21:05
9822566
Compare
Choose a tag to compare
  • #161: Re-use old refresh_token if no new one was issued after a refresh.

v2.4.1

22 Aug 05:39
d9b9d75
Compare
Choose a tag to compare
  • #151: Add 'Accept' header on token requests to fix a Github compatibility issue.
  • #151: Throw error when we get an invalid reply from a token endpoint.

v2.4.0

27 Jul 20:36
0468d45
Compare
Choose a tag to compare
  • More robust error handling. When an error is emitted, you now give you access to the emitted HTTP Response and response body.
  • Support for response_mode=fragment in the authorization_code flow.

v2.3.0

03 Feb 01:53
7ce4f29
Compare
Choose a tag to compare
  • Fix for #128: If there's no secret, we should never use Basic auth to encode the client_id.
  • Support for the resource parameter from RFC 8707.
  • Add support for scope parameter to refresh().
  • Support for RFC 7009, Token Revocation. (@adambom)

v2.2.4

05 Sep 21:58
af65d96
Compare
Choose a tag to compare
  • Added extraParams option to getAuthorizeUri, allowing users to add non-standard arguments to the authorization URI for servers that require this. (@pks1989)

v2.2.3

03 Aug 02:26
f8eca94
Compare
Choose a tag to compare
  • Moved the tokenResponseToOAuth2Token function inside the OAuth2Client class, allowing users to override the parsing logic more easily.

v2.2.2

28 Jul 04:16
4ed1204
Compare
Choose a tag to compare
  • #111 Some documentation fixes.
  • #110: Fix race condition with getStoredToken and calling fetch() immediately after constructing FetchWrapper.

v2.2.1

07 Jul 02:23
ce3d0a4
Compare
Choose a tag to compare
  • #15: Fix for TypeError: Failed to execute 'fetch' on 'Window': Illegal invocation at t.OAuth2Client.request.

v2.2.0

26 Apr 22:52
762fb51
Compare
Choose a tag to compare
  • Add an option to override which "fetch" implementation is used. (@bradjones1)

v2.1.1

24 Apr 01:47
2c1fded
Compare
Choose a tag to compare
  • Re-release. Previous build had an error.