diff --git a/server/src/routes/auth.ts b/server/src/routes/auth.ts index 96f4769a..ed495b8e 100644 --- a/server/src/routes/auth.ts +++ b/server/src/routes/auth.ts @@ -366,7 +366,7 @@ router.get( // Generate JWT token for session const jwtToken = jwt.sign( - { userId: user.id }, + { id: user.id }, process.env.JWT_SECRET as string ); res.cookie("token", jwtToken, { httpOnly: true });