fix: make auth migration more flexible

This commit is contained in:
David Nguyen
2025-02-14 19:22:11 +11:00
parent df8ea09021
commit 595e901bc2
2 changed files with 35 additions and 22 deletions

View File

@ -58,15 +58,16 @@ export const createUser = async ({ name, email, password, signature, url }: Crea
},
});
await tx.account.create({
data: {
userId: user.id,
type: 'emailPassword', // Todo
provider: 'DOCUMENSO', // Todo: Enums
providerAccountId: user.id.toString(),
password: hashedPassword,
},
});
// Todo: Migrate to use this after RR7.
// await tx.account.create({
// data: {
// userId: user.id,
// type: 'emailPassword', // Todo
// provider: 'DOCUMENSO', // Todo: Enums
// providerAccountId: user.id.toString(),
// password: hashedPassword,
// },
// });
return user;
});