diff --git a/UnstoppableWallet/UnstoppableWallet/Core/Managers/SubscriptionManager.swift b/UnstoppableWallet/UnstoppableWallet/Core/Managers/SubscriptionManager.swift index 11e630a1cf..a7db1df4f0 100644 --- a/UnstoppableWallet/UnstoppableWallet/Core/Managers/SubscriptionManager.swift +++ b/UnstoppableWallet/UnstoppableWallet/Core/Managers/SubscriptionManager.swift @@ -22,9 +22,12 @@ class SubscriptionManager { self.localStorage = localStorage self.marketKit = marketKit - authToken = localStorage.value(for: keyAuthToken) - marketKit.set(proAuthToken: authToken) - isAuthenticated = authToken != nil +// authToken = localStorage.value(for: keyAuthToken) +// marketKit.set(proAuthToken: authToken) +// isAuthenticated = authToken != nil + + authToken = nil + isAuthenticated = true } private func invalidateAuthToken() { @@ -42,19 +45,21 @@ extension SubscriptionManager { let result = try await request() onSuccess(result) } catch { - if let responseError = error as? NetworkManager.ResponseError, (responseError.statusCode == 401 || responseError.statusCode == 403) { - invalidateAuthToken() - onInvalidAuthToken() - } else { - onFailure(error) - } +// if let responseError = error as? NetworkManager.ResponseError, (responseError.statusCode == 401 || responseError.statusCode == 403) { +// invalidateAuthToken() +// onInvalidAuthToken() +// } else { +// onFailure(error) +// } + + onFailure(error) } } func set(authToken: String) { - marketKit.set(proAuthToken: authToken) - self.authToken = authToken - localStorage.set(value: authToken, for: keyAuthToken) +// marketKit.set(proAuthToken: authToken) +// self.authToken = authToken +// localStorage.set(value: authToken, for: keyAuthToken) } } diff --git a/UnstoppableWallet/UnstoppableWallet/Modules/Settings/Main/MainSettingsViewController.swift b/UnstoppableWallet/UnstoppableWallet/Modules/Settings/Main/MainSettingsViewController.swift index 47e259931e..97c2768478 100644 --- a/UnstoppableWallet/UnstoppableWallet/Modules/Settings/Main/MainSettingsViewController.swift +++ b/UnstoppableWallet/UnstoppableWallet/Modules/Settings/Main/MainSettingsViewController.swift @@ -389,7 +389,7 @@ extension MainSettingsViewController: SectionsDataSource { var sections: [SectionProtocol] = [ Section(id: "account", headerState: .margin(height: .margin12), rows: accountRows), Section(id: "wallet_connect", headerState: .margin(height: .margin32), rows: walletConnectRows), - Section(id: "personal_support", headerState: .margin(height: .margin32), rows: supportRows), +// Section(id: "personal_support", headerState: .margin(height: .margin32), rows: supportRows), Section(id: "appearance_settings", headerState: .margin(height: .margin32), rows: appearanceRows), Section(id: "experimental", headerState: .margin(height: .margin32), rows: experimentalRows), Section(id: "knowledge", headerState: .margin(height: .margin32), rows: knowledgeRows), diff --git a/UnstoppableWallet/UnstoppableWallet/Modules/Wallet/WalletViewModel.swift b/UnstoppableWallet/UnstoppableWallet/Modules/Wallet/WalletViewModel.swift index be430f1ce2..5889e67d27 100644 --- a/UnstoppableWallet/UnstoppableWallet/Modules/Wallet/WalletViewModel.swift +++ b/UnstoppableWallet/UnstoppableWallet/Modules/Wallet/WalletViewModel.swift @@ -194,7 +194,7 @@ extension WalletViewModel { } var swipeActionsEnabled: Bool { - !service.watchAccount + !service.watchAccount && !service.cexAccount } var lastCreatedAccount: Account? {