mirror of
https://github.com/lukevella/rallly.git
synced 2025-04-29 02:06:34 +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;
|
return true;
|
||||||
},
|
},
|
||||||
async jwt({ token, user, trigger, account, session }) {
|
async jwt({ token, session }) {
|
||||||
if (trigger === "signUp" && account?.providerAccountId) {
|
|
||||||
// merge accounts assigned to provider account id to the current user id
|
|
||||||
await mergeGuestsIntoUser(user.id, [account.providerAccountId]);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (session) {
|
if (session) {
|
||||||
token.locale = session.locale;
|
token.locale = session.locale;
|
||||||
token.timeFormat = session.timeFormat;
|
token.timeFormat = session.timeFormat;
|
||||||
|
|
Loading…
Add table
Reference in a new issue