From: Chocobozzz Date: Sun, 20 Nov 2016 16:41:03 +0000 (+0100) Subject: Server: fix refreshing token X-Git-Tag: v0.0.1-alpha~603 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=fab69ab8aa2130ba0dba7b7fd578618e02b97778;p=github%2FChocobozzz%2FPeerTube.git Server: fix refreshing token --- 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) { return OAuthClient.getByIdAndSecret(mongoId, clientSecret) } -function getRefreshToken (refreshToken, callback) { +function getRefreshToken (refreshToken) { logger.debug('Getting RefreshToken (refreshToken: ' + refreshToken + ').') return OAuthToken.getByRefreshTokenAndPopulateClient(refreshToken)