Skip to content

Releases: fiznool/passport-oauth2-refresh

v2.2.0

15 Apr 22:38
7c2137b
Compare
Choose a tag to compare

Added

  • Added a new named export AuthTokenRefresh. This is a
    constructor that can be invoked to create a distinct instance, for
    applications that require more than one Passport instance.

Updated

  • Added node 18 to test runner
  • Updated dependencies

v2.1.0

29 Jun 12:04
8e07bfb
Compare
Choose a tag to compare

Added

  • setRefreshOAuth2 option to customise the OAuth2 adapter that is used to refresh the access token.

v2.0.2

11 May 16:09
d003ee6
Compare
Choose a tag to compare

Updated

  • Update dependencies and test against node 16.

v2.0.1

02 Dec 10:41
0cd24f2
Compare
Choose a tag to compare

Updated

  • Update dependencies and test against node 14.

v2.0.0

25 Mar 12:01
517c3e6
Compare
Choose a tag to compare

Breaking

  • Drop support for node < 10.

v1.1.0

06 Jun 11:19
Compare
Choose a tag to compare

Added

  • Support using a strategy which overrides the getOAuthAccessToken function, for example the Reddit or Spotify strategy. #10

v1.0.0

17 Dec 12:58
Compare
Choose a tag to compare

Added

  • Allow extra params to be sent when requesting access token.
  • Use embedded _oauth2 constructor to create new OAuth2 instance, to support instances where the _oauth2 object is using a custom implementation.

Removed

  • Dropped peerDependency on oauth2 library, in favour of using the _oauth2 object exposed by passport.
  • Dropped support for node.js 0.6 and 0.8, lowest supported version is now 0.10. If you still need support for 0.6 or 0.8, please continue to use v0.4.0 of this module.

Upgrading from 0.4

The move from 0.4 to 1.0 is non-breaking, unless you are using a version of node.js lower than 0.10. In this case, you should stick to using 0.4. Otherwise, you can safely upgrade with no code changes required.