From 8519631c96ca22ef1093da65d96350ab1f81afac Mon Sep 17 00:00:00 2001 From: Luke Vella Date: Wed, 12 Feb 2025 13:04:47 +0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Update=20name=20in=20session=20(?= =?UTF-8?q?#1559)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web/src/next-auth.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/web/src/next-auth.ts b/apps/web/src/next-auth.ts index 2e2564c72..ddfb83bc1 100644 --- a/apps/web/src/next-auth.ts +++ b/apps/web/src/next-auth.ts @@ -145,6 +145,7 @@ export const { auth, handlers, signIn, signOut } = NextAuth({ id: userId, }, select: { + name: true, email: true, locale: true, timeFormat: true, @@ -154,6 +155,7 @@ export const { auth, handlers, signIn, signOut } = NextAuth({ }); if (user) { + token.name = user.name; token.email = user.email; token.locale = user.locale; token.timeFormat = user.timeFormat;