NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm · #1396 most downloaded on npm
Node.js Google Authentication Service Account Tokens
Last release 1 years ago
12 Jun 2025
Release timing varies
gaps range from 3 weeks to 10 months
Nearly every release is documented
notes for 45 of 48 stable releases
Nothing withdrawn
no release was ever pulled
12 years old
52 releases · first in 2014
Nothing published for this version
One column per quarter.
Nothing published for this version
Nothing published for this version
Nothing published for this version
7.1.0 (2024-02-01) Features Enable Token Retries
7.0.1 (2023-07-12) Bug Fixes deps: Update gaxios to 6.0.0
move to node 14 as minimum version
6.1.2 (2022-08-23) Bug Fixes remove pip install statements
6.1.1 (2022-08-04) Bug Fixes deps: update gaxios to 5.0.1
allow customizing the http client
deps: update dependency google-p12-pem to v4
6.0.0 (2022-05-10) ⚠ BREAKING CHANGES update library to use Node 12 ( #428 ) Build System update library to use Node 12
upgrade google-p12-pem to 3.1.3
build: migrate to using main branch
add gcf-owl-bot[bot] to ignoreAuthors
deps: remove dependency on mime
request new tokens before they expire
### Features * dedupe concurrent requests
deps: update dependency gaxios to v4
### Bug Fixes * deps: upgrade google-p12-pem
move gitattributes files to node templates
### Bug Fixes * typeo in nodejs .gitattribute
typescript@3.7.x introduced breaking changes to compiled code
deps: pin TypeScript below 3.7.0
### Bug Fixes * deps: use typescript ~3.6.0
docs: add jsdoc-region-tag plugin
### Bug Fixes * deps: update gaxios to 2.1.0
allow upstream libraries to force token refresh
This commit creates multiple breaking changes. The getToken() method previously returned Promise , where the string was the access_token returned from…
getToken()
method previously returned Promise<string>, where the string was the
access_token returned from the response. However, the oauth2 endpoint could
return a variety of other fields, such as an id_token in special cases.const token = await getToken();
// old response: 'some.access.token'
// new response: { access_token: 'some.access.token'}
To further support this change, the GoogleToken class no longer exposes
a token variable. It now exposes rawToken, accessToken, and idToken
fields which can be used to access the relevant values returned in the
response.
getToken()
method previously returned Promise<string>, where the string was the
access_token returned from the response. However, the oauth2 endpoint could
return a variety of other fields, such as an id_token in special cases.const token = await getToken();
// old response: 'some.access.token'
// new response: { access_token: 'some.access.token'}
To further support this change, the GoogleToken class no longer exposes
a token variable. It now exposes rawToken, accessToken, and idToken
fields which can be used to access the relevant values returned in the
response.
docs: make anchors work in jsdoc
docs: move to new client docs URL
deps: update dependency gaxios to v2
docs: update links in contrib guide
03-13-2019 14:54 PDT
docs: generate docs with compodoc
01-09-2019 13:40 PST
fix(deps): update dependency pify to v4
12-10-2018 15:28 PST
12-10-2018 15:28 PST
New features:
Breaking changes:
GoogleToken is now a class type, and must be instantiated.GoogleToken.expires_at renamed to GoogleToken.expiresAtGoogleToken.raw_token renamed to GoogleToken.rawTokenGoogleToken.token_expires renamed to GoogleToken.tokenExpiresThis is just a tiny little ol' release. The biggest change is the deferred loading of google-p12-pem, which will save on startup performance.
This is just a tiny little ol' release. The biggest change is the deferred loading of google-p12-pem, which will save on startup performance.
ffb966e fix: defer load of google-p12-pem (#63) 3c42c46 chore(package): update @types/mocha to version 5.0.0 (#62) a20c8d6 fix: improve typing around token (#59)
Enjoy y'all!
c857043 feat: add getCredentials method
c857043 feat: add getCredentials method (#56)
This release includes the new getCredentials method. This async method accepts a path to a keyfile (json, pem, p12) and returns the key and client email (if available).
const creds = await gtoken.getCredentials('path/to/key.json');
This release contains updates to a variety of dependencies:
This release contains updates to a variety of dependencies:
7f2db89 chore: update all the things (#53)
Enjoy!
The biggest change in this release is support for additional claims (#47). Enjoy!
The biggest change in this release is support for additional claims (#47). Enjoy!
f13fc68 feat: add support for additional claims (#47) 68c2365 chore: update google token uri (#49) aa9b719 chore: move to CircleCI (#50) 25a415a chore: remove tests from nyc (#48) 73bcdb8 chore(package): update mocha to version 5.0.0 (#46) ddca8e4 chore(package): update js-green-licenses to version 0.4.0 (#45) 38b19c3 doc: update README to reflect GoogleToken export (#44) 22aacd1 chore(package): update js-green-licenses to version 0.3.1 (#43) dc66da8 chore(package): update @types/node to version 9.3.0 (#41) 3653c8c chore: license check as part of posttest (#40) 7483fff chore(package): update @types/nock to version 9.1.0 (#39)
Fixes P0 issue #38, ensuring the right content-type is used on requests.
Fixes P0 issue #38, ensuring the right content-type is used on requests.
Fixes the exported paths (#35) making the module actually usable.
Fixes the exported paths (#35) making the module actually usable.
This is a semver major release.
This is a semver major release.
GoogleToken is now a class type, and must be instantiated.snake_case to camelCase:
GoogleToken.expires_at renamed to GoogleToken.expiresAtGoogleToken.raw_token renamed to GoogleToken.rawTokenGoogleToken.token_expires renamed to GoogleToken.tokenExpiresNothing published for this version
Add return statements to fix promise-related libraries (thanks @nhooey ! )
Add return statements to fix promise-related libraries (thanks @nhooey ! )
Update request to 2.72.0 and fix a test by removing sandboxed-module from deps.
Update request to 2.72.0 and fix a test by removing sandboxed-module from deps.
Better errors when the iss is missing. Silly iss.
Better errors when the iss is missing. Silly iss.
Thanks @stephenplusplus for the fix. Here's an ice-cream on me ---> :icecream:
Updated google-p12-pem dependency to v0.1.0
Updated google-p12-pem dependency to v0.1.0
Nothing published for this version
``` js var GoogleToken = require('gtoken'); var gtoken = GoogleToken({ keyFile: 'path/to/key.json', scope: ['https://scope1', 'https://scope2'] // or
key.json files.var GoogleToken = require('gtoken');
var gtoken = GoogleToken({
keyFile: 'path/to/key.json',
scope: ['https://scope1', 'https://scope2'] // or space-delimited string of scopes
});
gtoken.getToken(function(err, token) {
if (err) {
console.log(err);
return;
}
console.log(token);
});
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →