With redux I have a middleware that handles the request with errors and getting the token. Example please?