Skip to content

mgechev/google-oauth2-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published