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’ll 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
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
pi0 pushed a commit that referenced this issue 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
None yet
Development

No branches or pull requests

2 participants