[FEATURE] Cleaned up terminal display

This commit is contained in:
Dunemask 2024-02-10 17:36:18 -07:00
parent 4959d6c1fe
commit a804a6e98b
7 changed files with 36 additions and 25 deletions

View file

@ -17,7 +17,6 @@ const cairoAuthenticate = async (token) => {
// Middleware
const cairoAuthHandler = (req, res, next) => {
if (!req.token) return res.status(401).send("Cairo auth required!");
VERB("AUTH", `${MCL_CAIRO_URL}/api/user/info`);
cairoAuthenticate(req.token)
.then((authData) => (req.cairoId = authData.id))
.then(() => next())