Skip to content

Instantly share code, notes, and snippets.

@kaueDM
Last active August 14, 2019 12:57
Show Gist options
  • Save kaueDM/6524c67112cfb27cd461d167c8a44459 to your computer and use it in GitHub Desktop.
Save kaueDM/6524c67112cfb27cd461d167c8a44459 to your computer and use it in GitHub Desktop.
drop user
return axios.request({ url, method, data, params, headers })
.catch((error) => {
console.table(throwError(error))
receivedError.status === 401 && dispatchAction(AuthActions.logout)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment