Cannot read properties of undefined (reading 'id)

Hey guys i just started with create-t3-app and setup the discord auth. but when im trying to login i get this error
https://next-auth.js.org/errors#jwt_session_error Cannot read properties of undefined (reading 'id')
https://next-auth.js.org/errors#jwt_session_error Cannot read properties of undefined (reading 'id')
6 Replies
JacobMGEvans
JacobMGEvans2y ago
What have you looked into so far (researched: docs, googling, etc...), do you have an example of what you have tried or a minimal repro (https://stackoverflow.com/help/minimal-reproducible-example) to help provide more context on your problem?
Stack Overflow
How to create a Minimal, Reproducible Example - Help Center
Stack Overflow | The World’s Largest Online Community for Developers
slidebug
slidebugOP2y ago
Im sorry, What i did: - npm create t3-app@latest - generated the next-auth-secret like its told in the .env - created a discord app step by step https://create.t3.gg/en/usage/first-steps#authentication - build the app "npm run build" - start the app "npm run start" - klick on login and login with github. im on Mac Book Pro Ventura (m1)
Create T3 App
First Steps 🚀 Create T3 App
The best way to start a full-stack, typesafe Next.js app.
Will
Will2y ago
hey did you ever figure this out? im running into the same thing
slidebug
slidebugOP2y ago
i dont figure it out :/ problem is still the same... idk.
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
cje
cje2y ago
Did you push the db schema? That’s not listed in the steps of what the OP did oh i think i managed to reproduce it in a project that includes trpc and next-auth but not prisma
Want results from more Discord servers?
Add your server