All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.
2.2.0 - 2023-04-15
- 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.
- Added node 18 to test runner
- Updated dependencies
2.1.0 - 2021-06-29
setRefreshOAuth2
option to customise the OAuth2 adapter that is used to refresh the access token.
2.0.2 - 2021-05-11
- Update dependencies and test against node 16.
2.0.1 - 2020-12-02
- Update dependencies and test against node 14.
2.0.0 - 2020-03-25
- Drop support for node < 10.
1.1.0 - 2018-06-06
- Support using a strategy which overrides the
getOAuthAccessToken
function, for example the Reddit or Spotify strategy. #10
1.0.0 - 2015-12-17
- 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.
- 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.
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.
0.4.0 - 2015-04-01
- Allow strategy to be added with an explicit name:
refresh.use(name, strategy)
.
0.3.1 - 2015-03-06
- Removed peer dependency on passport-oauth2, to fix npm 3 warning.
0.3.0 - 2015-01-27
- Support strategies which use separate URLs for generating and refreshing tokens (e.g.
passport-echosign
).
0.2.1 - 2014-11-16
- Fixed passport-oauth2 peer dependency link.
0.2.0 - 2014-11-16
- Added passport-oauth2 as a peer dependency.
0.1.2 - 2014-11-16
- Fixed git url.
0.1.1 - 2014-11-16
- Fixed README typo.
- Initial release.