mirror of
https://github.com/lukevella/rallly.git
synced 2025-04-28 17:56:37 +02:00
🔥 Remove redundant data migration step (#1482)
This commit is contained in:
parent
d9b6a42f9a
commit
01eb62e345
1 changed files with 1 additions and 6 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue