Issues with next-auth discord

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. https://github.com/pertinate/t3-app-test
GitHub
GitHub - pertinate/t3-app-test
Contribute to pertinate/t3-app-test development by creating an account on GitHub.
9 Replies
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Reality Designers
Same
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Reality Designers
Nope
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
mac
mac2y ago
GitHub
GitHub - mac-eth/nextjs-nextauth-discord-tutorial
Contribute to mac-eth/nextjs-nextauth-discord-tutorial development by creating an account on GitHub.
mac
mac2y ago
I made this for that exact issue
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Pertinate
PertinateOP2y ago
will try later thank you!
Want results from more Discord servers?
Add your server