Generates a Google credential file based on Heroku Config Vars.
This is useful when using a package such as @google-cloud/storage which loads credentials from a file instead of an environmental variable.
- Create Config Vars key
GOOGLE_CREDENTIALS
and paste the content of service account credential JSON file as is.
The script with generate a file called client_secrets.json
which holds the key from the step #1 above.