This commit is contained in:
PxlLoewe
2025-02-15 18:06:21 +01:00
parent 1fba206dbf
commit bb9feaa1cc
14 changed files with 224 additions and 14 deletions

View File

@@ -26,7 +26,6 @@ export const options: AuthOptions = {
id: code.userId,
},
});
console.log(code, user);
if (!user) return null;
@@ -43,7 +42,7 @@ export const options: AuthOptions = {
maxAge: 30 * 24 * 60 * 60,
},
adapter: PrismaAdapter(prisma),
adapter: PrismaAdapter(prisma as any),
callbacks: {
jwt: async ({ token, user }) => {
if (user && 'firstname' in user) {