/Fix socialite twitter login error on heroku deployment

Found related thread on stackoverflow but decided to try another (presummably better for my case) solution. Turns out it works and decided to add the solution to the stackoverflow thread. Could be useful for somebody else

https://stackoverflow.com/a/65528958/2496217