Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
refactor(refresh scheme): remove unnecessary "_syncTokenExpiration"
  • Loading branch information
JoaoPedroAS51 committed Jun 13, 2019
1 parent 11332ba commit 23b1f9c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/schemes/refresh.js
Expand Up @@ -201,7 +201,6 @@ export default class RefreshScheme extends LocalScheme {
if (!this.isRefreshing) {
// Refresh the token
return this._tokenRefresh().then(() => {
this._syncTokenExpiration()
this._scheduleTokenRefresh()

// Update Authorization header
Expand Down Expand Up @@ -253,7 +252,6 @@ export default class RefreshScheme extends LocalScheme {
if (process.client && this.$auth.loggedIn && this.options.autoRefresh.enable) {
setTimeout(() => {
this._tokenRefresh().then(() => {
this._syncTokenExpiration()
this._scheduleTokenRefresh()
})
}, 1000)
Expand Down

0 comments on commit 23b1f9c

Please sign in to comment.