Skip to content
Permalink
Browse files
fix(Auth): register vuex store before all watchers
  • Loading branch information
Pooya Parsa committed Feb 3, 2018
1 parent e41af94 commit 006650f7548bf8ecd7b49da653cebccb6c9ec959
Showing 1 changed file with 3 additions and 2 deletions.
@@ -18,6 +18,9 @@ export default class Auth {
// Keep token out of the store for security reasons
Vue.set(this, 'token', null)

// Register vuex store
this._registerVuexStore()

// Reset on error
if (this.options.resetOnError) {
this._resetOnError()
@@ -27,8 +30,6 @@ export default class Auth {
if (this.options.watchLoggedIn && process.browser) {
this._watchLoggedIn()
}

this._registerVuexStore()
}

_registerVuexStore () {

0 comments on commit 006650f

Please sign in to comment.