Cannot get id field in the next-auth session.
I am currently working on the drizzle nextjs project. I am using neondb postgresql as database.
I am currently facing this issue where i cannot get userId in the session of getServerSession(). I have posted the code that i have worked on currently in this post.
If i try to console.log(user) in session or jwt callbacks it returns a undefined value.
The token doesn't have a id field.
I really wish if anyone could help me out with this.
0 Replies