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;