From 371fa0933a43379bc546b4a5586271a79aefa915 Mon Sep 17 00:00:00 2001
From: Chocobozzz <florian.bigard@gmail.com>
Date: Fri, 4 Nov 2016 11:34:23 +0100
Subject: Server: fix refreshing token

---
 server/models/oauth-token.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

(limited to 'server')

diff --git a/server/models/oauth-token.js b/server/models/oauth-token.js
index 04fb9540d..aff73bfb1 100644
--- a/server/models/oauth-token.js
+++ b/server/models/oauth-token.js
@@ -38,7 +38,9 @@ function getByRefreshTokenAndPopulateClient (refreshToken) {
       client: {
         id: token.client._id.toString()
       },
-      user: token.user
+      user: {
+        id: token.user
+      }
     }
 
     return tokenInfos
-- 
cgit v1.2.3