зеркало из https://github.com/mozilla/fleet.git
481 B
481 B
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.