Hi, don't know if you already figured it out but for you or anyone else running into the same issue I solved it by doing the following.
Put the entire jwt json file you get from google into an env variable in the .env file.
example: SOME_VAR='{"key": "value"}' NOTE The entire json file has to be on a single line
Then read in the value in your index.js file
example: const { SOME_VAR } = process.env; //JSON
3.Parse it.
example: const someVar = JSON.parse(SOME_VAR);
Use dot notation to access that key and pass it wherever you need it.
example: someVar.key // 'value'
For further actions, you may consider blocking this person and/or reporting abuse
We're a blogging-forward open source social network where we learn from one another
Hi, don't know if you already figured it out but for you or anyone else running into the same issue I solved it by doing the following.
Put the entire jwt json file you get from google into an env variable in the .env file.
example: SOME_VAR='{"key": "value"}'
NOTE The entire json file has to be on a single line
Then read in the value in your index.js file
example: const { SOME_VAR } = process.env; //JSON
3.Parse it.
example: const someVar = JSON.parse(SOME_VAR);