1.0.14
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user