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

refactor auth middleware to be more like router middleware #61

Open
kratsg opened this issue Feb 20, 2018 · 0 comments
Open

refactor auth middleware to be more like router middleware #61

kratsg opened this issue Feb 20, 2018 · 0 comments
Assignees
Labels

Comments

@kratsg
Copy link
Contributor

kratsg commented Feb 20, 2018

from

if (action.type === types.LOGIN_STATUS) {
    AuthService.handleAuthentication()
   ......
  }
  next(action);

to

if (action.type !== types.LOGIN_STATUS) {
  return next(action)
}
    AuthService.handleAuthentication()
@kratsg kratsg self-assigned this Feb 20, 2018
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

1 participant