|
|
@@ -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()
|
|
|
|