I am trying to verify I have the private_key
correct as described in this SO question.
Docs about service account private keys are here.
This question is also related to another question, so look out for similar symptoms when debugging.
This issue with Firebase authentication was caused by a malfunctioning JSON reading.
It's important to note that the private keys are meant to be used with the "useless" information, since the method to decode the private key is expecting those strings to be there.
The problem was reading the JSON file correctly.
Thanks to @Tanaike and @Tedinoz for the troubleshooting steps.