fleet/frontend/redux/middlewares
Zach Wasserman 0670db66c4
Migrate JS tests to Jest and update libraries (#74)
- Move from Mocha to Jest for JS testing (Jest seems to have better support for
 'watching' tests and a more active community these days).
- Codemod existing tests to Jest syntax (using https://github.com/skovhus/jest-codemods)
- Fix some errors in tests that were previously hidden.
- Update Babel.
2020-12-01 10:15:12 -08:00
..
redirect Migrate JS tests to Jest and update libraries (#74) 2020-12-01 10:15:12 -08:00
auth.js Get app to work in IE (#1344) 2017-03-03 12:21:07 -05:00
README.md Replace uses of the term "Kolide" with "Fleet" (#1999) 2019-01-24 09:39:32 -08:00

Fleet Redux Middleware

The Fleet Redux Middleware handles actions before they hit the reducers. The current middleware does the following:

Authentication Middleware

The authentication middleware handles logging a user in/out and handles logging out a user when the API responds with an unauthenticated error.

Redirect Middleware

The redirect middleware transitions the user to the 500 page when an API call fails with a 500 status.