diff --git a/app/auth.ts b/app/auth.ts index ff96c68d8..84b59136c 100644 --- a/app/auth.ts +++ b/app/auth.ts @@ -78,7 +78,7 @@ export const authOptions: NextAuthOptions = { // Extend session object here session.user = { ...session.user, - id: token.sub, + id: userId, }; return session;