I created a t3 app and I'm having issues with using discord auth. I've tried multiple ways to approach the issues but I'm just not sure where the issue is happening because there are no errors being logged.
On first start up I can log in just fine. But when I log out and try to log back in it sends me to the /api/auth/error route. There's no session in the database (I swapped it from sqlite to postresql to see if that would remediate the issue). I deleted the cookies and cleared any session data that I could find. But it always sends me to the error route with no error logs in the browser console or the terminal.
The only thing custom I've done to the default repo is add zustand, ripping that out is the only thing I haven't tried.