diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-11-20 17:41:03 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-11-21 22:09:45 +0100 |
commit | fab69ab8aa2130ba0dba7b7fd578618e02b97778 (patch) | |
tree | f93fbb734673837be2d09fe75ee1dd5b939e4e29 /server | |
parent | 693b1aba4675f7e3d850e0f6d07dbfc7bdff9b8c (diff) | |
download | PeerTube-fab69ab8aa2130ba0dba7b7fd578618e02b97778.tar.gz PeerTube-fab69ab8aa2130ba0dba7b7fd578618e02b97778.tar.zst PeerTube-fab69ab8aa2130ba0dba7b7fd578618e02b97778.zip |
Server: fix refreshing token
Diffstat (limited to 'server')
-rw-r--r-- | server/lib/oauth-model.js | 2 |
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 | ||
35 | function getRefreshToken (refreshToken, callback) { | 35 | function 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) |