Node service for generating auth tokens for a Google Analytics account.
This project uses the google-api-nodejs-client library for authorizing and generating JSON Web Tokens.
IMPORTANT: No steps are taken to protect the JWT this server provides. The token grants read-only privileges and will expire, so this shouldn't be an issue.
You will need to set up a service account in the google developer console for this project to generate a JWT. See Service Accounts at https://developers.google.com/analytics/devguides/reporting/core/v4/authorization#service_accounts
Once created, download the service account's public/private key as a JSON file and add it to the root of this project. Make sure update the import path in auth-service.js.