Discord not signing in

I'm testing create-t3-app. When I click sign in I get a 302 status code.
No description
5 Replies
Kseikyo
Kseikyo10mo ago
Did you create an app on discord and add the right id and secret to the .env file?
t3sam_19556
t3sam_1955610mo ago
Hey @tonyyalt , did you manage to resolve this? I've hit the same issue
'tonyyprints'
'tonyyprints'10mo ago
I have not manage to resolve this I did yes
t3sam_19556
t3sam_1955610mo ago
After a few hours of tinkering I managed to pin it down to the check than injects a csrf=true at the end of the URL. Turns out to be a node issue, and upgrading from 18 -> 20 seems to have fixed my issue. https://github.com/nextauthjs/next-auth/discussions/7785
GitHub
CSRF Problem on NextJs 13.4 · nextauthjs next-auth · Discussion #77...
Question 💬 I do check next-auth with NextJs v12 and v13 separately, as you may know, v12 uses the pages directory and v13 uses the app directory. next-auth sign-in works perfectly on v12 but not on...
'tonyyprints'
'tonyyprints'10mo ago
ahh awesome thank you you're awesome for that