aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-11-20 17:41:03 +0100
committerChocobozzz <florian.bigard@gmail.com>2016-11-21 22:09:45 +0100
commitfab69ab8aa2130ba0dba7b7fd578618e02b97778 (patch)
treef93fbb734673837be2d09fe75ee1dd5b939e4e29
parent693b1aba4675f7e3d850e0f6d07dbfc7bdff9b8c (diff)
downloadPeerTube-fab69ab8aa2130ba0dba7b7fd578618e02b97778.tar.gz
PeerTube-fab69ab8aa2130ba0dba7b7fd578618e02b97778.tar.zst
PeerTube-fab69ab8aa2130ba0dba7b7fd578618e02b97778.zip
Server: fix refreshing token
-rw-r--r--server/lib/oauth-model.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/lib/oauth-model.js b/server/lib/oauth-model.js
index 922ef0b1f..d011c4b72 100644
--- a/server/lib/oauth-model.js
+++ b/server/lib/oauth-model.js
@@ -32,7 +32,7 @@ function getClient (clientId, clientSecret) {
32 return OAuthClient.getByIdAndSecret(mongoId, clientSecret) 32 return OAuthClient.getByIdAndSecret(mongoId, clientSecret)
33} 33}
34 34
35function getRefreshToken (refreshToken, callback) { 35function getRefreshToken (refreshToken) {
36 logger.debug('Getting RefreshToken (refreshToken: ' + refreshToken + ').') 36 logger.debug('Getting RefreshToken (refreshToken: ' + refreshToken + ').')
37 37
38 return OAuthToken.getByRefreshTokenAndPopulateClient(refreshToken) 38 return OAuthToken.getByRefreshTokenAndPopulateClient(refreshToken)