0.0.7 • Published 8 years ago

auth-google v0.0.7

Weekly downloads
4
License
ISC
Repository
github
Last release
8 years ago

auth-google

Command line helper tool to work with Google access tokens.

Installation

$ npm install auth-google --save
require('auth-google')({
      name: 'my-app' // will be used to store the token under ~/.config/my-app/token.json
    , client_id: '...' // enter client id from the developer console
    , client_secret: '...' // enter client secret from the developer console
    , scope: [] // add scopes 
}, function (error, token) {
    // token.access_token - your token
    // token.token_type - token type
    // token.expires_at - timestamp when this token will be expired
    // token.refresh(callback) - Refreshes the token
});
0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago