I\'m trying to create an Heroku node task that reads data from Firebase and console.log it.
My node script (located inside the /bin directory) is:
re
I solved this by using the .replace(/\n/g, '\n') on the private key and also removing the quotes from the private key value on heroku config vars like it is bellow.
-----BEGIN PRIVATE KEY-----\nMY-PRIVATE-KEY\n-----END PRIVATE KEY-----\n