google-oauth2-node
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

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

Package Sidebar

Install

npm i google-oauth2-node

Weekly Downloads

1,466

Version

0.0.3

License

MIT

Unpacked Size

6.69 kB

Total Files

5

Last publish

Collaborators

  • mgechev