diff --git a/lib/routes/middlewares/auth-middleware.js b/lib/routes/middlewares/auth-middleware.js index bf9beda..37fe39c 100644 --- a/lib/routes/middlewares/auth-middleware.js +++ b/lib/routes/middlewares/auth-middleware.js @@ -32,7 +32,7 @@ const cairoAuthHandler = (req, res, next) => { console.log(authData); if (!authData.id) throw Error(`Cairo didn't return the expected data! ${authData.id}`); - req.id = authData.id; + req.cairoId = authData.id; }) .then(() => next()) .catch((err) => {