Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

service-account

1.0.2 • Public • Published

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

Keywords

none

install

npm i service-account

Downloadsweekly downloads

29

version

1.0.2

license

MIT

last publish

collaborators

  • avatar
Report a vulnerability