I’m having trouble getting Google Cloud to work in a Auth0.com Hook. I would simply like to connect to our Google Cloud Pub/Sub and publish a message. But I’m running into trouble when trying to specify PubSub Credentials. I see that in Auth0 hooks we can use Key/Value “Secrets” but Google Pub/Sub requires that we either set an Environment variable to the path of the service_account file, or manually specify the path to a service_account file.
const pubsub = new PubSub({
projectId: ‘your-project-id’,
keyFilename: ‘/path/to/keyfile.json’
});