Anirudh
Anirudh
TTCTheo's Typesafe Cult
Created by gave_one on 8/6/2023 in #questions
[next-auth][error][JWT_SESSION_ERROR]
Try passing "secret" property which explicitly points to your NEXTAUTH_SECRET env variable inside authOptions object inside auth.ts file. Like this, secret: process.env.NEXTAUTH_SECRET. Doing this solved this error for me & all callbacks work properly with jwt stratergy.
12 replies