fix: 미인증 로그인 시 에러 토스트 없이 발송 완료 화면으로 전환

로그인 호출에 silent 옵션을 추가해 전역 에러 토스트를 끄고, 로그인 화면에서 에러를 직접 처리.
미인증(403)은 토스트 없이 인증 메일 발송 후 발송 완료 화면으로 이동하고, 그 외 자격 오류만 다이얼로그로 안내.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-06-22 13:52:06 +09:00
parent 6c0f1778c8
commit 24031d93a9
3 changed files with 35 additions and 16 deletions
+6 -3
View File
@@ -30,9 +30,12 @@ export function useAuth() {
await api.post('/auth/reset-password', { token, password })
}
// 로그인
async function login(payload: LoginPayload): Promise<AuthUser> {
return (await api.post('/auth/login', payload)) as unknown as AuthUser
// 로그인 — silent 옵션 시 전역 에러 토스트를 띄우지 않고 호출측이 직접 처리
async function login(
payload: LoginPayload,
opts?: { silent?: boolean },
): Promise<AuthUser> {
return (await api.post('/auth/login', payload, opts)) as unknown as AuthUser
}
// 로그아웃 (쿠키 제거)