Next.js Discord

Discord Forum

Next Auth Type Error

Unanswered
Asiatic Lion posted this in #help-forum
Open in Discord
Asiatic LionOP
I tried on a new project and was able to replicate, maybe its a new error:
Property 'user' does not exist on type '({ session: Session; user: AdapterUser; } | { session: Session; token: JWT; }) & { newSession: any; trigger?: "update" | undefined; }'.ts(2339)

3 Replies

Asiatic LionOP
Opened an official issue on repository: https://github.com/nextauthjs/next-auth/issues/9802
try 5.0.0-beta.4
@ReverseGem7 try 5.0.0-beta.4
Asiatic LionOP
I did, with beta 3 as well, I didn't have this issue before either.