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

gtoken

Package Overview
Dependencies
Maintainers
6
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 2.0.1 to 2.0.2

13

build/src/index.js

@@ -54,2 +54,3 @@ "use strict";

var pify = require("pify");
var querystring = require("querystring");
var readFile = pify(fs.readFile);

@@ -232,6 +233,10 @@ var GOOGLE_TOKEN_URL = 'https://accounts.google.com/o/oauth2/token';

signedJWT = jws.sign(toSign);
return [2 /*return*/, axios_1.default
.post(GOOGLE_TOKEN_URL, {
grant_type: 'urn:ietf:params:oauth:grant-type:jwt-bearer',
assertion: signedJWT
return [2 /*return*/, axios_1.default({
method: 'post',
url: GOOGLE_TOKEN_URL,
data: querystring.stringify({
grant_type: 'urn:ietf:params:oauth:grant-type:jwt-bearer',
assertion: signedJWT
}),
headers: { 'Content-Type': 'application/x-www-form-urlencoded' }
})

@@ -238,0 +243,0 @@ .then(function (r) {

{
"name": "gtoken",
"version": "2.0.1",
"version": "2.0.2",
"description": "Node.js Google Authentication Service Account Tokens",

@@ -5,0 +5,0 @@ "main": "./build/src/index.js",

@@ -10,2 +10,3 @@ # node-gtoken

[![Greenkeeper badge][greenkeeper-image]][greenkeeper-url]
[![style badge][gts-image]][gts-url]

@@ -176,7 +177,4 @@ Node.js Google Authentication Service Account Tokens

[gdevconsole]: https://console.developers.google.com
[npm-image]: https://img.shields.io/npm/v/gtoken.svg
[npm-url]: https://npmjs.org/package/gtoken
[travis-image]: https://travis-ci.org/google/node-gtoken.svg?branch=master
[travis-url]: https://travis-ci.org/google/node-gtoken
[codecov-image]: https://codecov.io/gh/google/node-gtoken/branch/master/graph/badge.svg
[codecov-url]: https://codecov.io/gh/google/node-gtoken
[david-image]: https://david-dm.org/google/node-gtoken.svg

@@ -186,7 +184,12 @@ [david-url]: https://david-dm.org/google/node-gtoken

[david-dev-url]: https://david-dm.org/google/node-gtoken?type=dev
[gdevconsole]: https://console.developers.google.com
[greenkeeper-image]: https://badges.greenkeeper.io/google/node-gtoken.svg
[greenkeeper-url]: https://greenkeeper.io/
[gts-image]: https://img.shields.io/badge/code%20style-Google%20%E2%98%82%EF%B8%8F-blue.svg
[gts-url]: https://www.npmjs.com/package/gts
[npm-image]: https://img.shields.io/npm/v/gtoken.svg
[npm-url]: https://npmjs.org/package/gtoken
[snyk-image]: https://snyk.io/test/github/google/node-gtoken/badge.svg
[snyk-url]: https://snyk.io/test/github/google/node-gtoken
[codecov-image]: https://codecov.io/gh/google/node-gtoken/branch/master/graph/badge.svg
[codecov-url]: https://codecov.io/gh/google/node-gtoken
[greenkeeper-image]: https://badges.greenkeeper.io/google/node-gtoken.svg
[greenkeeper-url]: https://greenkeeper.io/
[travis-image]: https://travis-ci.org/google/node-gtoken.svg?branch=master
[travis-url]: https://travis-ci.org/google/node-gtoken

Sorry, the diff of this file is not supported yet

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