Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gtoken

Package Overview
Dependencies
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gtoken - npm Package Compare versions

Comparing version 1.2.1 to 1.2.2

12

lib/index.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc