[FEATURE] Cleaned up terminal display
This commit is contained in:
parent
4959d6c1fe
commit
a804a6e98b
7 changed files with 36 additions and 25 deletions
|
@ -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())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue