google-auth-library
Advanced tools
Comparing version
@@ -185,3 +185,2 @@ "use strict"; | ||
refreshAccessToken(callback) { | ||
messages.warn(messages.REFRESH_ACCESS_TOKEN_DEPRECATED); | ||
if (callback) { | ||
@@ -188,0 +187,0 @@ this.refreshAccessTokenAsync().then(r => callback(null, r.credentials, r.res), callback); |
@@ -57,7 +57,2 @@ /** | ||
}; | ||
export declare const REFRESH_ACCESS_TOKEN_DEPRECATED: { | ||
code: string; | ||
type: WarningTypes; | ||
message: string; | ||
}; | ||
export declare const OAUTH_GET_REQUEST_METADATA_DEPRECATED: { | ||
@@ -64,0 +59,0 @@ code: string; |
@@ -94,11 +94,2 @@ "use strict"; | ||
}; | ||
exports.REFRESH_ACCESS_TOKEN_DEPRECATED = { | ||
code: 'google-auth-library:DEP007', | ||
type: WarningTypes.DEPRECATION, | ||
message: [ | ||
'The `refreshAccessToken` method has been deprecated, and will be removed', | ||
'in the 3.0 release of google-auth-library. Please use the `getRequestHeaders`', | ||
'method instead.', | ||
].join(' '), | ||
}; | ||
exports.OAUTH_GET_REQUEST_METADATA_DEPRECATED = { | ||
@@ -105,0 +96,0 @@ code: 'google-auth-library:DEP004', |
@@ -7,2 +7,9 @@ # Changelog | ||
## [5.4.0](https://www.github.com/googleapis/google-auth-library-nodejs/compare/v5.3.0...v5.4.0) (2019-10-08) | ||
### Features | ||
* do not deprecate refreshAccessToken ([#804](https://www.github.com/googleapis/google-auth-library-nodejs/issues/804)) ([f05de11](https://www.github.com/googleapis/google-auth-library-nodejs/commit/f05de11)) | ||
## [5.3.0](https://www.github.com/googleapis/google-auth-library-nodejs/compare/v5.2.2...v5.3.0) (2019-09-27) | ||
@@ -403,7 +410,10 @@ | ||
#### The `refreshAccessToken` method has been deprecated | ||
The `OAuth2.refreshAccessToken` method has been deprecated. The `getAccessToken`, `getRequestMetadata`, and `request` methods will all refresh the token if needed automatically. There is no need to ever manually refresh the token. | ||
#### Deprecate `refreshAccessToken` | ||
As always, if you run into any problems... please let us know! | ||
_Note: `refreshAccessToken` is no longer deprecated._ | ||
`getAccessToken`, `getRequestMetadata`, and `request` methods will all refresh the token if needed automatically. | ||
You should not need to invoke `refreshAccessToken` directly except in [certain edge-cases](https://github.com/googleapis/google-auth-library-nodejs/issues/575). | ||
### Features | ||
@@ -410,0 +420,0 @@ - Set private_key_id in JWT access token header like other google auth libraries. (#450) |
{ | ||
"name": "google-auth-library", | ||
"version": "5.3.0", | ||
"version": "5.4.0", | ||
"author": "Google Inc.", | ||
@@ -5,0 +5,0 @@ "description": "Google APIs Authentication Client Library for Node.js", |
219480
-0.09%4162
-0.36%