Skip to content

JWT Not working on last update V5 #9437

@dionvanhecke

Description

@dionvanhecke

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

No one assigned

    Labels

    bugSomething isn't workinginvalid reproductionThe issue did not have a detectable valid reproduction URLtriageUnseen or unconfirmed by a maintainer yet. Provide extra information in the meantime.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions