enforce max session length

This commit is contained in:
miloschwartz
2025-10-24 16:14:21 -07:00
parent 629f17294a
commit 39d6b93d42
12 changed files with 249 additions and 81 deletions

View File

@@ -68,7 +68,6 @@ export async function checkOrgUserAccess(
next: NextFunction
): Promise<any> {
try {
logger.debug("here0 ")
const parsedParams = paramsSchema.safeParse(req.params);
if (!parsedParams.success) {
return next(
@@ -116,7 +115,8 @@ export async function checkOrgUserAccess(
const policyCheck = await checkOrgAccessPolicy({
orgId,
userId
userId,
session: req.session
});
// if we get here, the user has an org join, we just don't know if they pass the policies