Comparing version 1.2.1 to 1.2.2
@@ -49,3 +49,3 @@ var gp12pem = require('google-p12-pem'); | ||
if (!this.hasExpired()) { | ||
callback(null, this.token); | ||
return callback(null, this.token); | ||
} else { | ||
@@ -78,3 +78,3 @@ if (!this.key && !this.keyFile) { | ||
} else { | ||
this._requestToken(callback); | ||
return this._requestToken(callback); | ||
} | ||
@@ -197,3 +197,3 @@ } | ||
this._signJWT(toSign, function(err, signedJWT) { | ||
return this._signJWT(toSign, function(err, signedJWT) { | ||
if (err) { | ||
@@ -204,3 +204,3 @@ callback(err, null); | ||
self._request({ | ||
return self._request({ | ||
method: 'post', | ||
@@ -231,3 +231,3 @@ url: GOOGLE_TOKEN_URL, | ||
self.expires_at = (iat + body.expires_in) * 1000; | ||
callback(null, self.token); | ||
return callback(null, self.token); | ||
}); | ||
@@ -246,3 +246,3 @@ }); | ||
var signedJWT = jws.sign(opts); | ||
callback(null, signedJWT); | ||
return callback(null, signedJWT); | ||
} catch (err) { | ||
@@ -249,0 +249,0 @@ callback(err, null); |
{ | ||
"name": "gtoken", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "Node.js Google Authentication Service Account Tokens", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
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
26664