Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on May 7, 2024 via pnpm

google-auth-library 9.6.3

Google APIs Authentication Client Library for Node.js
Package summary
Share
0
issues
4
licenses
17
MIT
4
Apache-2.0
1
BSD-3-Clause
1
BSD-2-Clause
Package created
24 Feb 2015
Version published
6 Feb 2024
Maintainers
1
Total deps
23
Direct deps
6
License
Apache-2.0

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
17 Packages, Including:
agent-base@7.1.1
base64-js@1.5.1
bignumber.js@9.1.2
debug@4.3.4
extend@3.0.2
gtoken@7.1.0
https-proxy-agent@7.0.4
is-stream@2.0.1
json-bigint@1.0.0
jwa@2.0.0
jws@4.0.0
ms@2.1.2
node-fetch@2.7.0
safe-buffer@5.2.1
tr46@0.0.3
uuid@9.0.1
whatwg-url@5.0.0

Apache License 2.0

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
use-patent-claims
place-warranty
Cannot
hold-liable
use-trademark
Must
include-copyright
include-license
state-changes
include-notice
4 Packages, Including:
ecdsa-sig-formatter@1.0.11
gaxios@6.5.0
gcp-metadata@6.1.0
google-auth-library@9.6.3

BSD 3-Clause "New" or "Revised" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
use-trademark
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
buffer-equal-constant-time@1.0.1

BSD 2-Clause "Simplified" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
webidl-conversions@3.0.1
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

6
All Dependencies CSV
β“˜ This is a list of google-auth-library 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
base64-js1.5.14.01 kBMIT
prod
ecdsa-sig-formatter1.0.116.94 kBApache-2.0
prod
gaxios6.5.0103.48 kBApache-2.0
prod
gcp-metadata6.1.022.61 kBApache-2.0
prod
gtoken7.1.011.57 kBMIT
prod
jws4.0.05.75 kBMIT
prod

Visualizations

Frequently Asked Questions

What does google-auth-library do?

The Google Auth Library for Node.js is Google's officially supported client library for using OAuth 2.0 authorization and authentication with Google APIs. The purpose of this library is to aid developers in building server-side software that uses Google APIs. It simplifies the authentication process, manages tokens, and handles various types of authentication including Application Default Credentials, OAuth 2, JSON Web Tokens, and Google Compute among others.

How do you use google-auth-library?

To use the google-auth-library, you first need to install the client library using npm via the command npm install google-auth-library. After this, you can authenticate using the desired method. For instance, with Application Default Credentials (ADC), the library auto-detects the environment and retrieves appropriate credentials. Here's an example of choosing the correct credential type automatically:

const {GoogleAuth} = require('google-auth-library');

async function main() {
  const auth = new GoogleAuth({
    scopes: 'https://www.googleapis.com/auth/cloud-platform'
  });
  const client = await auth.getClient();
  const projectId = await auth.getProjectId();
  const url = `https://dns.googleapis.com/dns/v1/projects/${projectId}`;
  const res = await client.request({ url });
  console.log(res.data);
}

main().catch(console.error);

The library also supports other authentication methodologies like OAuth2, JWT, Workload Identity Federation, Impersonated Credentials Client, and more.

Where are the google-auth-library docs?

The documentation for the Google Auth Library for Node.js can be found at various places. The Node.js Client API Reference can be found here. More information about the library and its usage with tutorials and sample code can be found on the Google Auth Library Github repository. You can also explore the client libraries explained page on Google Cloud for further understanding.