Added some debugging to the token service file.
And converted the sidebar script to a react component.
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user