Skip to content

Commit

Permalink
fix(module): allow watchLoggedIn
Browse files Browse the repository at this point in the history
  • Loading branch information
Pooya Parsa committed May 21, 2018
1 parent 9ead681 commit 471d59f
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions lib/module/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,6 @@ function validateOptions (options) {
delete options.endpoints
}

if (options.watchLoggedIn) {
// eslint-disable-next-line no-console
logger.error('`watchLoggedIn` has been deprecated. Use `redirect.logout` instead.')
if (options.watchLoggedIn === false) {
options.redirect.logout = false
}
delete options.watchLoggedIn
}

// Enforce vuex store because auth depends on it
if (!this.options.store) {
logger.fatal('Enable vuex store by creating `store/index.js`.')
Expand Down

1 comment on commit 471d59f

@begueradj
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a bug with this module as reported by several users: loggedIn flag is always set to true, which things makes this plugin obsolete.

Please sign in to comment.