Skip to content

Releases: badgateway/oauth2-client

v1.0.0

28 Oct 21:16
84a5d1f
Compare
Choose a tag to compare
  • Dropped support for Node 10.
  • Fixed #45: Call onAuthError when a refresh fails.
  • Replaced awesome-typescript-loader with ts-loader for Webpack builds.
    the former appears unmaintained.
  • Switched from Travis CI to Github Actions.

v0.7.0

01 Dec 03:48
1085216
Compare
Choose a tag to compare
  • Ensure that only 1 refresh operation will happen in parallel. If there are
    multiple things triggering the refresh, all will wait for the first one
    to finish.
  • Automatically schedule a refresh operation 1 minute before the access token
    expires, if the expiry time is known.
  • BC Break: If a token is known when setting up OAuth2, this now needs to be
    passed as the second argument. The old behavior still works but will emit
    a warning, and will be removed in a future release.
  • 'OAuth2Token' type is now exported.

v0.6.1

20 Nov 03:03
1371583
Compare
Choose a tag to compare
  • #34: Refresh operation failed for the authorization_code flow.

v0.6.0

09 Nov 21:09
08ef628
Compare
Choose a tag to compare
  • Added a onAuthError event, allowing users to intercept this event and
    re-authenticate.
  • Simplify types a bit. More duplication in the library, but this should
    result in easier to read errors.
  • Typescript 4
  • Switch from tslint to eslint.
  • Webpack 5

0.3.4

19 Mar 03:21
Compare
Choose a tag to compare
  • This package now throws OAuth2Error classes for server-side errors.

0.3.3

19 Mar 03:20
0651771
Compare
Choose a tag to compare
  • When refreshing a token, browsers don't allow re-use of the same Request
    object. Now we're cloning it before use.

0.3.2

19 Mar 03:20
Compare
Choose a tag to compare
  • When refreshing a token, and there's no client_secret, the client_id
    must be sent in the body.

0.3.1

19 Mar 03:20
Compare
Choose a tag to compare
  • Now correctly exporting all the right symbols.

0.3.0

13 Mar 20:40
Compare
Choose a tag to compare
  • Library is refactored and now uses a class.
  • Support for authorization_code grant type.
  • Exposing some more information to uses.
  • Add a new onTokenUpdate hook for custom storage.
  • It's now possible to construct a client with an existing (old) Access and/or
    refresh token.