google-auth-library
Advanced tools
Comparing version
@@ -129,3 +129,5 @@ "use strict"; | ||
const gtoken = this.createGToken(); | ||
const token = await gtoken.getToken(); | ||
const token = await gtoken.getToken({ | ||
forceRefresh: this.isTokenExpiring(), | ||
}); | ||
const tokens = { | ||
@@ -132,0 +134,0 @@ access_token: token.access_token, |
@@ -7,2 +7,9 @@ # Changelog | ||
## [5.3.0](https://www.github.com/googleapis/google-auth-library-nodejs/compare/v5.2.2...v5.3.0) (2019-09-27) | ||
### Features | ||
* if token expires soon, force refresh ([#794](https://www.github.com/googleapis/google-auth-library-nodejs/issues/794)) ([fecd4f4](https://www.github.com/googleapis/google-auth-library-nodejs/commit/fecd4f4)) | ||
### [5.2.2](https://www.github.com/googleapis/google-auth-library-nodejs/compare/v5.2.1...v5.2.2) (2019-09-17) | ||
@@ -9,0 +16,0 @@ |
{ | ||
"name": "google-auth-library", | ||
"version": "5.2.2", | ||
"version": "5.3.0", | ||
"author": "Google Inc.", | ||
@@ -25,3 +25,3 @@ "description": "Google APIs Authentication Client Library for Node.js", | ||
"gcp-metadata": "^3.0.0", | ||
"gtoken": "^4.0.0", | ||
"gtoken": "^4.1.0", | ||
"jws": "^3.1.5", | ||
@@ -28,0 +28,0 @@ "lru-cache": "^5.0.0" |
219673
0.18%4177
0.05%Updated