This release removes credentials length validations, upgrades request
,
and drops support for Node.js 0.8.
- Remove length check from
clientId
andclientSecret
options - Remove support for Node.js 0.8
request
module updated to v2.61.0 from v2.45.0.
This release is a maintainance release to upgrade dependencies.
extend
module updated to v3.0.0 from v1.2.1.request
module updated to v2.45.0 from v2.27.0.
This release fixes an issue where an error response from the token request will cache the invalid state forever.
- Forward error from the request to the callback.
- Only cache token requests when the response body contains an
expiresIn
property (i.e. do not cache error responses).
This release adds better token handling when using automatic token management.
request
module updated to v2.27.0 from v0.12.0.- Return error when fetching token automatically for request fails.
- Attempt to fetch new token after a request fails with invalid token response.
This release fixes a regression in v0.3.0 where tokens would never expire
and so after token expiration time was reached, all requests would result
in 401 Unauthorized
.
- Fix omission preventing memorized tokens from expiring.
This release removes the token expiration timer. The main benefit is that the expiration will occur even if the event loop is being starved or the clock drifts.
- Replace timer in token response memorization with on-demand checks.
- Use monotonic clock for memorization expiration rather than wall clock.
This release contains a fix for a regression in v0.2.2
that broke
compatibility with node < 0.10.
- Fix compatibility with Node.js below v0.10.
- Prevent token expiration timer from artificially keeping the event loop open.
- Copy stored options to avoid collision.
- Improve validation of options.
- Support arrays within request body.
- Cache OAuth errors for 10 seconds.
This is the first, initial implementation.