Added some debugging to the token service file.

And converted the sidebar script to a react component.
This commit is contained in:
2025-07-23 10:29:11 +02:00
parent 3ef99aebfe
commit 2b4b554c24
3 changed files with 41 additions and 30 deletions

View File

@@ -23,6 +23,7 @@ export async function authenticate(req, res, next) {
req.user = payload;
next();
} catch (e) {
console.log("TOKEN SERVICE ERROR: ", e)
return res.status(403).send("Invalid or expired token");
}
}