기존에 약관동의한 사용자는 약관 동의 다시 하지 않도록 수정
This commit is contained in:
@@ -86,14 +86,14 @@ export const TAxios = (
|
||||
axiosInstance
|
||||
.then((res) => {
|
||||
console.log("TAxios response", url, res);
|
||||
if(res?.data?.retCode === 501){
|
||||
//약관 비동의
|
||||
dispatch(changeLocalSettings({accessToken: null}));
|
||||
dispatch({type: types.GET_TERMS_AGREE_YN, payload: {}});
|
||||
return;
|
||||
}
|
||||
// if(res?.data?.retCode === 501){
|
||||
// //약관 비동의
|
||||
// dispatch(changeLocalSettings({accessToken: null}));
|
||||
// dispatch({type: types.GET_TERMS_AGREE_YN, payload: {}});
|
||||
// return;
|
||||
// }
|
||||
//AccessToken 만료
|
||||
if(res?.data?.retCode === 401){
|
||||
if(res?.data?.retCode === 401 ){
|
||||
dispatch(getReAuthenticationCode());
|
||||
checkAccessToken().then((token) => {
|
||||
executeRequest(token);
|
||||
@@ -101,7 +101,7 @@ export const TAxios = (
|
||||
return;
|
||||
}
|
||||
//RefreshToken 만료
|
||||
if(res?.data?.retCode === 402 ){
|
||||
if(res?.data?.retCode === 402 || res?.data?.retCode === 501 ){
|
||||
dispatch(getAuthenticationCode());
|
||||
checkAccessToken().then((token) => {
|
||||
executeRequest(token);
|
||||
|
||||
Reference in New Issue
Block a user