Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatic login and logout redirection ignores page guarded state #52

Closed
breakingrobot opened this issue Feb 3, 2018 · 2 comments
Closed
Labels
Projects
Milestone

Comments

@breakingrobot
Copy link
Contributor

breakingrobot commented Feb 3, 2018

Originally reported by @pi0 馃巻

watchLoggedIn () {
    this._loggedInWatcher =
      this._loggedInWatcher ||
      this.$store.watch(
        state => state[this.options.namespace]['loggedIn'],
        () => {
          this.redirect('home')
        }
      )
    return this._loggedInWatcher
}

State watcher ignores completely about the current page guarded state and will automatically redirect you to login page even if you current page is not guarded by authentication.

This bug report is available on Nuxt.js community (#c37)
@breakingrobot breakingrobot added this to the 4.0 milestone Feb 3, 2018
@breakingrobot breakingrobot added this to To Do in 4.0 via automation Feb 3, 2018
pi0 pushed a commit that referenced this issue Feb 3, 2018
4.0 automation moved this from To Do to Done Feb 3, 2018
pi0 pushed a commit that referenced this issue Feb 3, 2018
@fanckush
Copy link

fanckush commented Feb 4, 2018

So this has been fixed? i seem to have the same problem and i updated to the latest version

Edit: ok i have a different issue apparently

@breakingrobot
Copy link
Contributor Author

breakingrobot commented Feb 4, 2018

@fanckush If you found another issue, please open a new issue 馃槃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
4.0
  
Done
Development

No branches or pull requests

2 participants