Skip to content

Commit

Permalink
fix(refresh scheme): fix hasRefreshTokenChanged property that was giv…
Browse files Browse the repository at this point in the history
…ing the opposite value
  • Loading branch information
JoaoPedroAS51 committed Jul 26, 2019
1 parent 226203f commit 65822b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/schemes/refresh.js
Expand Up @@ -91,7 +91,7 @@ export default class RefreshScheme extends LocalScheme {
// Update refresh token and register refresh-logic with axios
const refreshToken = getProp(result, this.options.refreshToken.property)
if (refreshToken !== undefined) {
this.hasRefreshTokenChanged = refreshToken === this._getRefreshToken()
this.hasRefreshTokenChanged = refreshToken !== this._getRefreshToken()
this._setRefreshToken(refreshToken)

const _tokenCreatedAt = getProp(result, this.options.createdAt) || Date.now()
Expand Down

0 comments on commit 65822b2

Please sign in to comment.