Heroku environment variable/auth issues
See original GitHub issueHi All, you’re doing a great job!
I just wanted to offer up something I resolved myself today, that I thought could help with your documentation.
On the Authentication page there is a special mention for Heroku. I was using the following and ran into issues myself:
await doc.useServiceAccountAuth({
client_email: process.env.GOOGLE_SERVICE_ACCOUNT_EMAIL,
private_key: process.env.GOOGLE_PRIVATE_KEY,
});
You mention about trying to replace \n
with actual new lines. However, I found this solved the issue:
Hope this helps!
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:9 (2 by maintainers)
Top Results From Across the Web
Configuration and Config Vars - Heroku Dev Center
Config vars are exposed to your app's code as environment variables. For example, in Node.js you can access your app's DATABASE_URL config var ......
Read more >Heroku not applying environment variable changes in Okta ...
When you change the environment variables, heroku should restart your app automatically. So, the two issues are that the environment variables ...
Read more >Any clue as to why I am not able to use heroku environment ...
The client secret and client id are stored as environment variables in heroku, and locally!! When I dummy test the auth function with...
Read more >'Invalid API Key' Heroku Deployment? : r/Firebase - Reddit
Auth works in MERN app's local development without any issues. All private information is stored in a .env file and then called in...
Read more >Auth0 Integration With Heroku
Hi. I'm not sure if you still have the issue but what worked for me was adding missing env variables to Heroku. You...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thank you @henryprescott that works for me on AWS
I just added the other hint about replacing newlines to the docs, so hopefully that helps!