|
|
|
@ -31,11 +31,11 @@ function* userLoginSaga(action: ActionType<typeof Actions.login.request>) {
|
|
|
|
|
//console.log('>>>>>11>>>>>>>', data);
|
|
|
|
|
|
|
|
|
|
if (errorCode == '-101') { |
|
|
|
|
throw '계정 정보가 찾을수 없습니다. 다시 확인해주세요.'; |
|
|
|
|
throw '계정 정보를 찾을 수 없습니다. 다시 확인해 주세요.'; |
|
|
|
|
} else if (errorCode == '-102') { |
|
|
|
|
throw '비밀번호가 잘못되었습니다. 다시 확인해 주세요.'; |
|
|
|
|
} else if (errorCode == '-103') { |
|
|
|
|
throw '계정 정보가 사용할수 없습 상태입니다. 다시 확인해주세요.'; |
|
|
|
|
throw '계정 정보가 사용할 수 없는 상태입니다. 다시 확인해 주세요.'; |
|
|
|
|
} |
|
|
|
|
// access_token 세팅
|
|
|
|
|
cookieStorage.setCookie(COOKIE_ACCESS_TOKEN, data.accessToken); |
|
|
|
|