remove lucia

This commit is contained in:
Milo Schwartz 2024-10-13 17:13:47 -04:00
parent f14fb90ab6
commit 99d6cababa
No known key found for this signature in database
39 changed files with 234 additions and 167 deletions

View file

@ -55,8 +55,7 @@ export enum ActionsEnum {
}
export async function checkUserActionPermission(actionId: string, req: Request): Promise<boolean> {
const userId = req.user?.id;
const userId = req.user?.userId;
if (!userId) {
throw createHttpError(HttpCode.UNAUTHORIZED, 'User not authenticated');
}
@ -116,4 +115,4 @@ export async function checkUserActionPermission(actionId: string, req: Request):
console.error('Error checking user action permission:', error);
throw createHttpError(HttpCode.INTERNAL_SERVER_ERROR, 'Error checking action permission');
}
}
}