New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

google-oauth2-node

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

google-oauth2-node

Client for OAuth2 authentication for Google APIs (Google Analytics, GMail, Google Docs, etc.)

  • 0.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
109
decreased by-74.59%
Maintainers
1
Weekly downloads
 
Created
Source

Node.js Google OAuth2 Client

Using this client you can get a refresh and access tokens for using Google APIs. The client is specifically designed to be used in node.js, as an "Installed Application".

Installation

npm i google-oauth2-node --save

Usage

import { auth } from 'google-oauth2-node';

const clientId = '...';
const clientSecret = '...';
const scope = 'https://www.googleapis.com/auth/analytics.readonly';

auth({ clientId, clientSecret, scope }).then(res => console.log(res), err => console.error(err));

License

MIT

Keywords

FAQs

Package last updated on 28 Nov 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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