Skip to content

Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.

🔥 Remove redundant data migration step (#1482)

Luke Vella01eb62e345c5
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;