This commit is contained in:
Allan Carr
2025-07-14 00:11:18 -07:00
parent 7f782d5a64
commit e5eb413fc0

View File

@@ -27,6 +27,6 @@ export default function ValidateImsToken(req: Request, res: Response, next: Next
next();
} catch (error) {
logger.error("Error validating IMS token.", { error: (error as Error).message });
if (!res.headersSent) res.status(500).json({ error: "Error validating IMS token." });
if (!res.headersSent) res.sendStatus(401);
}
}