-
Notifications
You must be signed in to change notification settings - Fork 4k
Closed
Labels
bugSomething isn't workingSomething isn't workinginvalid reproductionThe issue did not have a detectable valid reproduction URLThe issue did not have a detectable valid reproduction URLtriageUnseen or unconfirmed by a maintainer yet. Provide extra information in the meantime.Unseen or unconfirmed by a maintainer yet. Provide extra information in the meantime.
Description
Environment
"@auth/prisma-adapter": "^1.0.12",
"next-auth": "5.0.0-beta.3",
Ubuntu 22.05
Node v20.10.0
Reproduction URL
None
Describe the issue
Since the latest update there seems to be a problem with the session callback not reading if the session strategy is set:
Type error: Property 'token' does not exist on type '({ session: Session; user: AdapterUser; } | { session: Session; token: JWT; }) & { newSession: any; trigger?: "update" | undefined; }'.
i have the session strategy set to jwt it seems like it doesn't read it or there is something that is not yet documented on the authjs website it worked before.
How to reproduce
Use the prisma adapter and authjs v5
Expected behavior
If the session strategy is set to jwt this should work it doesn't
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinginvalid reproductionThe issue did not have a detectable valid reproduction URLThe issue did not have a detectable valid reproduction URLtriageUnseen or unconfirmed by a maintainer yet. Provide extra information in the meantime.Unseen or unconfirmed by a maintainer yet. Provide extra information in the meantime.