aboutsummaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-11-04 11:34:23 +0100
committerChocobozzz <florian.bigard@gmail.com>2016-11-04 11:34:23 +0100
commit371fa0933a43379bc546b4a5586271a79aefa915 (patch)
tree6d97b80f6c28ca44f2fe585d65e0435577394d49 /server
parent8c862bf9fd88f700cd071a898de9d288932f8148 (diff)
downloadPeerTube-371fa0933a43379bc546b4a5586271a79aefa915.tar.gz
PeerTube-371fa0933a43379bc546b4a5586271a79aefa915.tar.zst
PeerTube-371fa0933a43379bc546b4a5586271a79aefa915.zip
Server: fix refreshing token
Diffstat (limited to 'server')
-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