Remove offline mode
The offline mode was removed to focus on resolving connection issues instead of providing a workaround.
This commit is contained in:
@@ -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 };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user