From 01eb62e345c5f0cd8e675d18655e38c10159b83c Mon Sep 17 00:00:00 2001 From: Luke Vella Date: Mon, 6 Jan 2025 13:26:57 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A5=20Remove=20redundant=20data=20migr?= =?UTF-8?q?ation=20step=20(#1482)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web/src/auth.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/apps/web/src/auth.ts b/apps/web/src/auth.ts index e8ec7e085..5062d6285 100644 --- a/apps/web/src/auth.ts +++ b/apps/web/src/auth.ts @@ -262,12 +262,7 @@ const getAuthOptions = (...args: GetServerSessionParams) => return true; }, - async jwt({ token, user, trigger, account, session }) { - if (trigger === "signUp" && account?.providerAccountId) { - // merge accounts assigned to provider account id to the current user id - await mergeGuestsIntoUser(user.id, [account.providerAccountId]); - } - + async jwt({ token, session }) { if (session) { token.locale = session.locale; token.timeFormat = session.timeFormat;