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

Dependencies (3)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i service-account

    Weekly Downloads

    2

    Version

    1.0.2

    License

    MIT

    Last publish

    Collaborators

    • cwmma