diff --git a/services/web/app/coffee/Features/Authentication/AuthenticationController.coffee b/services/web/app/coffee/Features/Authentication/AuthenticationController.coffee index 18948fa0df..4821a3f90b 100644 --- a/services/web/app/coffee/Features/Authentication/AuthenticationController.coffee +++ b/services/web/app/coffee/Features/Authentication/AuthenticationController.coffee @@ -185,7 +185,10 @@ module.exports = AuthenticationController = User.findOne { "overleaf.id": body.user_profile.id }, (error, user) -> return next(error) if error? return res.status(401).send({error: "invalid_token"}) unless user? - req.oauth = access_token: body.access_token + req.oauth = + access_token: body.access_token + collabratec_customer_id: body.collabratec_customer_id + user_profile: body.user_profile req.oauth_user = user next()