From b72fe4c2dd73f9210ae2222b62a6e161491ebd8f Mon Sep 17 00:00:00 2001 From: Alejandro Weichandt Date: Thu, 26 Mar 2026 11:51:03 +0100 Subject: [PATCH] fix: prevent ambiguous use of const values --- ios/NativeBridge.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ios/NativeBridge.swift b/ios/NativeBridge.swift index 01968069..ea30ce2b 100644 --- a/ios/NativeBridge.swift +++ b/ios/NativeBridge.swift @@ -471,7 +471,7 @@ extension WebAuthError { case .noAuthorizationCode: code = "NO_AUTHORIZATION_CODE" case .pkceNotAllowed: code = "PKCE_NOT_ALLOWED" case .idTokenValidationFailed: code = "ID_TOKEN_VALIDATION_FAILED" - case .other: if let cause = self.cause as? AuthenticationError { + case WebAuthError.other: if let cause = self.cause as? AuthenticationError { code = cause.code } else { code = "OTHER" @@ -490,8 +490,8 @@ extension DPoPError { case .keychainOperationFailed: code = NativeBridge.dpopKeyStorageFailedCode case .cryptoKitOperationFailed: code = NativeBridge.dpopProofFailedCode case .secKeyOperationFailed: code = NativeBridge.dpopProofFailedCode - case .other: code = NativeBridge.dpopErrorCode - case .unknown: code = NativeBridge.dpopErrorCode + case DPoPError.other: code = NativeBridge.dpopErrorCode + case DPoPError.unknown: code = NativeBridge.dpopErrorCode default: code = NativeBridge.dpopErrorCode }