Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.
TypeScript i18nextnext-authnextjspostgresqlprismareact-emailt3-stacktailwindcsstrpcturborepotypescriptzod
🔥 Remove locale from session
Luke Vella1bfad57872b8
diff --git a/apps/web/declarations/next-auth.d.ts b/apps/web/declarations/next-auth.d.tsindex 3529b4249..e0e5a5c1a 100644--- a/apps/web/declarations/next-auth.d.ts+++ b/apps/web/declarations/next-auth.d.ts@@ -13,7 +13,6 @@ declare module "next-auth" {isGuest: boolean;timeZone?: string | null;timeFormat?: TimeFormat | null;- locale?: string | null;weekStart?: number | null;} & DefaultSession["user"];}@@ -34,7 +33,6 @@ declare module "next-auth" {declare module "next-auth/jwt" {interface JWT extends DefaultJWT {- locale?: string | null;timeZone?: string | null;timeFormat?: TimeFormat | null;weekStart?: number | null;diff --git a/apps/web/src/next-auth.config.ts b/apps/web/src/next-auth.config.tsindex ec9ede4bc..2b93fb476 100644--- a/apps/web/src/next-auth.config.ts+++ b/apps/web/src/next-auth.config.ts@@ -24,7 +24,6 @@ export const nextAuthConfig = {async session({ session, token }) {session.user.id = token.sub as string;session.user.email = token.email as string;- session.user.locale = token.locale;session.user.timeFormat = token.timeFormat;session.user.timeZone = token.timeZone;session.user.weekStart = token.weekStart;