Next.js Discord

Discord Forum

Sign in problem when trying to connect with prisma

Unanswered
Chartreux posted this in #help-forum
Open in Discord
ChartreuxOP
I'm setting up my project and connecting my app with prisma, but there's 1 line that caused an error, the line is
adapter: PrismaAdapter(prisma),(if I remove this line, the app works well, but I can't store the data)
and the error is
[next-auth][error][JWT_SESSION_ERROR]
https://next-auth.js.org/errors#jwt_session_error Invalid Compact JWE {
  message: 'Invalid Compact JWE',
  stack: 'JWEInvalid: Invalid Compact JWE\n'


I searched for solution online, but I found nothing. I didn't change the strategy to jwt tho.
What is causing this problem? I'm really confused

0 Replies