From 2194db3f5bd80fc4bc77ce40facd93fc82b437f0 Mon Sep 17 00:00:00 2001 From: Artem Zelinskyi Date: Wed, 8 Apr 2026 14:51:07 +0200 Subject: [PATCH] Set explicit type for .other in switch in FlutterError Made enum naming consistent --- .../Classes/WebAuth/WebAuthExtensions.swift | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/auth0_flutter/darwin/Classes/WebAuth/WebAuthExtensions.swift b/auth0_flutter/darwin/Classes/WebAuth/WebAuthExtensions.swift index 263c728e..6f706b99 100644 --- a/auth0_flutter/darwin/Classes/WebAuth/WebAuthExtensions.swift +++ b/auth0_flutter/darwin/Classes/WebAuth/WebAuthExtensions.swift @@ -10,14 +10,14 @@ extension FlutterError { convenience init(from webAuthError: WebAuthError) { var code: String switch webAuthError { - case .noBundleIdentifier: code = "NO_BUNDLE_IDENTIFIER" - case .invalidInvitationURL: code = "INVALID_INVITATION_URL" - case .userCancelled: code = "USER_CANCELLED" - case .noAuthorizationCode: code = "NO_AUTHORIZATION_CODE" - case .pkceNotAllowed: code = "PKCE_NOT_ALLOWED" - case .idTokenValidationFailed: code = "ID_TOKEN_VALIDATION_FAILED" - case .transactionActiveAlready: code = "TRANSACTION_ACTIVE_ALREADY" - case .other: code = "OTHER" + case WebAuthError.noBundleIdentifier: code = "NO_BUNDLE_IDENTIFIER" + case WebAuthError.invalidInvitationURL: code = "INVALID_INVITATION_URL" + case WebAuthError.userCancelled: code = "USER_CANCELLED" + case WebAuthError.noAuthorizationCode: code = "NO_AUTHORIZATION_CODE" + case WebAuthError.pkceNotAllowed: code = "PKCE_NOT_ALLOWED" + case WebAuthError.idTokenValidationFailed: code = "ID_TOKEN_VALIDATION_FAILED" + case WebAuthError.transactionActiveAlready: code = "TRANSACTION_ACTIVE_ALREADY" + case WebAuthError.other: code = "OTHER" default: code = "UNKNOWN" } var details = webAuthError.details