I want to use Google Cloud Storage in NodeJS but authenticate with google-auth-library Specifically: I want to host this on heroku, so I want to keep the secret in an environment variable, not in a file (as I'd have to commit the file to deploy to heroku). Basically what is suggested in the auth library: https://github.com/googleapis/google-auth-library-nodejs#loading-credentials-from-environment-variables
But I can't seem to pass the resulting client to the Storage constructor?