remove lucia

This commit is contained in:
Milo Schwartz
2024-10-13 17:13:47 -04:00
parent f14fb90ab6
commit 99d6cababa
39 changed files with 234 additions and 167 deletions

View File

@@ -20,7 +20,7 @@ export const verifySessionMiddleware = async (
const existingUser = await db
.select()
.from(users)
.where(eq(users.id, user.id));
.where(eq(users.userId, user.userId));
if (!existingUser || !existingUser[0]) {
return next(

View File

@@ -20,7 +20,7 @@ export const verifySessionUserMiddleware = async (
const existingUser = await db
.select()
.from(users)
.where(eq(users.id, user.id));
.where(eq(users.userId, user.userId));
if (!existingUser || !existingUser[0]) {
return next(