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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    1
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i service-account

Weekly Downloads

1

Version

1.0.2

License

MIT

Last publish

Collaborators

  • cwmma