Server: fix refreshing token
This commit is contained in:
parent
693b1aba46
commit
fab69ab8aa
|
@ -32,7 +32,7 @@ function getClient (clientId, clientSecret) {
|
||||||
return OAuthClient.getByIdAndSecret(mongoId, clientSecret)
|
return OAuthClient.getByIdAndSecret(mongoId, clientSecret)
|
||||||
}
|
}
|
||||||
|
|
||||||
function getRefreshToken (refreshToken, callback) {
|
function getRefreshToken (refreshToken) {
|
||||||
logger.debug('Getting RefreshToken (refreshToken: ' + refreshToken + ').')
|
logger.debug('Getting RefreshToken (refreshToken: ' + refreshToken + ').')
|
||||||
|
|
||||||
return OAuthToken.getByRefreshTokenAndPopulateClient(refreshToken)
|
return OAuthToken.getByRefreshTokenAndPopulateClient(refreshToken)
|
||||||
|
|
Loading…
Reference in New Issue