service-account
v1.0.2
Published
service accounts for google auth getting
Downloads
58
Readme
service account
Wrapper around google-auth2-service-account to make it easier to use.
API
serviceAccount(key, email, scope, [callback]);
Takes the private key, client email, scope and optionally a callback. Resolves to the auth token. If a callback is omitted it returns a promise.
serviceAccount(jsonKey, scope, [callback]);
Alternatively pass it the (parsed) json key you got from the google console