Login/register not working when website deployed to Heroku
If you have any environmental variables locally, you also need to add those variables in Heroku too. Go to your heroku control panel, go to settings, and then click on Reveal config vars. There, you add your Key value pairs