Remove offline mode

The offline mode was removed to focus on resolving connection issues instead of providing a workaround.
This commit is contained in:
gpt-engineer-app[bot]
2025-03-15 15:06:37 +00:00
parent e52ca26cef
commit 60adc4ce1f
8 changed files with 268 additions and 391 deletions

View File

@@ -13,8 +13,8 @@ export const signIn = async (email: string, password: string) => {
// 서버 연결 상태 먼저 확인
const connectionStatus = await verifyServerConnection();
if (!connectionStatus.connected) {
console.log('서버 연결 실패, 오프라인 모드 활성화를 고려하세요.');
showAuthToast('서버 연결 실패', `${connectionStatus.message} (오프라인 모드를 사용해보세요)`, 'destructive');
console.log('서버 연결 실패:', connectionStatus.message);
showAuthToast('서버 연결 실패', connectionStatus.message, 'destructive');
return {
error: { message: `서버 연결에 실패했습니다: ${connectionStatus.message}` },
user: null
@@ -79,7 +79,7 @@ export const signIn = async (email: string, password: string) => {
// 네트워크 오류 확인
const errorMessage = handleNetworkError(error);
showAuthToast('로그인 오류', `${errorMessage} (오프라인 모드를 사용해보세요)`, 'destructive');
showAuthToast('로그인 오류', errorMessage, 'destructive');
return { error: { message: errorMessage }, user: null };
}