Permalink
Browse files

fix(fetchUser): fetchUser should only be called when enabled

  • Loading branch information...
breakingrobot committed Feb 7, 2018
2 parents 7b50160 + ff90b58 commit dd0638e7586b72135de91fd91cd6716b082974bc
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/templates/auth.class.js
@@ -37,7 +37,7 @@ export default class Auth {
this.syncToken()
// Fetch user if is not available
return this.state.user ? Promise.resolve() : this.fetchUser()
return (!this.state.user && this.options.fetchUserOnLogin) ? this.fetchUser() : Promise.resolve()
}
_registerVuexStore () {

0 comments on commit dd0638e

Please sign in to comment.