global catch intercept
How to handle 401 (Authentication Error) in axios and react?
I got it working with following code import axios from 'axios'; import config from '../../configuration.json'; import qs from 'qs'; const baseURL = config['baseUrl_local']; let authTokenRequest; /** * @description axios instance for ajax requests */ var client = axios.create({ baseURL: baseURL, headers: { appID: 8, version: "1.1.0", empID: localStorage.getItem('empID'), token: localStorage.getItem('accessToken')
https://stackoverflow.com/questions/47216452/how-to-handle-401-authentication-error-in-axios-and-react
axios catch
오류 처리 | Axios 러닝 가이드
Axios 라이브러리 오류 처리에 대해 학습합니다.
https://xn--xy1bk56a.run/axios/guide/error-handling.html

Seonglae Cho