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•2y ago
Message Not Public
Sign In & Join Server To View
Same
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Nope
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
GitHub
GitHub - mac-eth/nextjs-nextauth-discord-tutorial
Contribute to mac-eth/nextjs-nextauth-discord-tutorial development by creating an account on GitHub.
I made this for that exact issue
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
will try later
thank you!