Adopt correct UIAA and session token passing usage as per spec.

This commit is contained in:
Stefan Ceriu
2026-10-12 22:27:32 +03:00
parent 8f54e6159d
commit 011087baf5
6 changed files with 16 additions and 34 deletions
@@ -822,10 +822,9 @@ class ClientProxy: ClientProxyProtocol {
LinkNewDeviceService(handler: client.newGrantLoginWithQrCodeHandler())
}
func deactivateAccount(password: String?, eraseData: Bool) async -> Result<Void, ClientProxyError> {
func deactivateAccount(password: String, eraseData: Bool) async -> Result<Void, ClientProxyError> {
do {
try await client.deactivateAccount(authData: password.map { .password(passwordDetails: .init(identifier: userID, password: $0)) },
eraseData: eraseData)
try await client.deactivateAccount(password: password, eraseData: eraseData)
return .success(())
} catch {
return .failure(.sdkError(error))
@@ -247,7 +247,7 @@ protocol ClientProxyProtocol: AnyObject {
func linkNewDeviceService() -> LinkNewDeviceServiceProtocol
func deactivateAccount(password: String?, eraseData: Bool) async -> Result<Void, ClientProxyError>
func deactivateAccount(password: String, eraseData: Bool) async -> Result<Void, ClientProxyError>
func logout() async