node-vault-client
Advanced tools
Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "node-vault-client", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "engines": { |
@@ -33,3 +33,3 @@ 'use strict'; | ||
getAuthToken() { | ||
if (this.__authToken === null || (this.__authToken.isExpired() && this._reauthenticationAllowed())) { | ||
if (this.__authToken === null || (this.__authToken instanceof AuthToken && this.__authToken.isExpired() && this._reauthenticationAllowed())) { | ||
if (this.__authToken !== null && this.__authToken.isExpired() && !this._reauthenticationAllowed()) { | ||
@@ -39,3 +39,3 @@ throw new errors.AuthTokenExpiredError('Auth token has expired & cannot be refreshed since auth method doesn\'t support this.'); | ||
return this._authenticate().then(authToken => { | ||
const tokenPromise = this._authenticate().then(authToken => { | ||
this.__authToken = authToken; | ||
@@ -47,2 +47,5 @@ | ||
}); | ||
this.__authToken = tokenPromise; | ||
return tokenPromise; | ||
} | ||
@@ -49,0 +52,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18731
524