diff options
| author | joonhoekim <26rote@gmail.com> | 2025-08-22 03:11:57 +0000 |
|---|---|---|
| committer | joonhoekim <26rote@gmail.com> | 2025-08-22 03:11:57 +0000 |
| commit | dbdae213e39b82ff8ee565df0774bd2f72f06140 (patch) | |
| tree | 37ff13e5784426328c40408e960699af554aeb24 /lib/users/session | |
| parent | 01296fafda2b52339727ca445de39c6ccb3ba03d (diff) | |
(김준회) 로그인 에러 토스트 메시지 개선, 중공업 유저의 협력사 유저 추가/수정시 전화번호 사용 반영
Diffstat (limited to 'lib/users/session')
| -rw-r--r-- | lib/users/session/helper.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/users/session/helper.ts b/lib/users/session/helper.ts index 439ab32d..f99ca80a 100644 --- a/lib/users/session/helper.ts +++ b/lib/users/session/helper.ts @@ -17,7 +17,7 @@ export const authHelpers = { } if (!authResult.success || !authResult.user) { - return { success: false, error: 'Invalid credentials' } + return { success: false, error: authResult.error || 'INVALID_CREDENTIALS' } } // DB에 임시 인증 세션 생성 @@ -45,7 +45,7 @@ export const authHelpers = { } } catch (error) { console.error('First auth error:', error) - return { success: false, error: 'Authentication failed' } + return { success: false, error: 'SYSTEM_ERROR' } } }, |
