Created
March 12, 2018 03:01
-
-
Save prsnnami/718632bf090c091783a7dddba686c421 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
axios.interceptors.response.use(function (response) { | |
return response; | |
}, function (error) { | |
if (error.response.status === 401) { | |
// Log Out | |
} | |
return Promise.reject(error); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment