Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import axios from 'axios'
- import { logoffRequest } from 'store/actions/userActions'
- import { store } from '/caminho'
- axios.interceptors.response.use(
- response => response,
- error => {
- if (403 === error.response.status) {
- store.dispatch(logoffRequest())
- }
- }
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement