🔥 Remove redundant data migration step (#1482)

This commit is contained in:
Luke Vella 2025-01-06 13:26:57 +00:00 committed by GitHub
parent d9b6a42f9a
commit 01eb62e345
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;