Skip to content

Commit

Permalink
Remove log.error and fix passing in parameters into refreshTokens whe…
Browse files Browse the repository at this point in the history
…n silently refreshing a token.
  • Loading branch information
wdamien committed Aug 2, 2018
1 parent 3f1ac18 commit d393285
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/auth/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ export default class Auth {
} else {
// on missing consent Azure also answers with HTTP 400 code
// Error: AADSTS65001, response.json.error_codes[0] == 65001
log.error('Could not refresh token: ', response)
// log.error('Could not refresh token: ', response)
return Promise.reject(null)
}
})
Expand Down Expand Up @@ -189,7 +189,7 @@ export default class Auth {
}
let refreshToken = await this.cache.getRefreshToken(input.userId)
if (refreshToken) {
const tokenResponse = await this.refreshTokens(refreshToken, scope)
const tokenResponse = await this.refreshTokens({refreshToken, scope})
if (tokenResponse && tokenResponse.refreshToken) {
this.cache.saveRefreshToken(tokenResponse)
}
Expand Down

0 comments on commit d393285

Please sign in to comment.