aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--server/models/oauth-token.js4
1 files changed, 3 insertions, 1 deletions
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) {
38 client: { 38 client: {
39 id: token.client._id.toString() 39 id: token.client._id.toString()
40 }, 40 },
41 user: token.user 41 user: {
42 id: token.user
43 }
42 } 44 }
43 45
44 return tokenInfos 46 return tokenInfos