Permalink
Browse files

fix(Auth): register vuex store before all watchers

  • Loading branch information...
pi0 committed Feb 3, 2018
1 parent e41af94 commit 006650f7548bf8ecd7b49da653cebccb6c9ec959
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/templates/auth.class.js
@@ -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.