Authentication and deployment with Google OAuth, MongoDB (Mongo Atlas) and Heroku are extremely error-prone. Either the routes are wrong, the credentials/environmental variables, or maybe the dependencies. Heroku doesn't deploy dev dependencies.
It's a frustrating experience but also helps with developing my debugging skills. It's good to have version control, so that you can roll back if you can't figure out the errors.