From 28adfbfec947dba94d15ab11ed0a03b10b89ef49 Mon Sep 17 00:00:00 2001 From: Harshdeep Singh <6162866+harsh62@users.noreply.github.com> Date: Thu, 5 Dec 2024 00:17:19 -0500 Subject: [PATCH] update --- .../Models/Errors/AWSCognitoAuthError.swift | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/AmplifyPlugins/Auth/Sources/AWSCognitoAuthPlugin/Models/Errors/AWSCognitoAuthError.swift b/AmplifyPlugins/Auth/Sources/AWSCognitoAuthPlugin/Models/Errors/AWSCognitoAuthError.swift index 0aba6cfb02..d859ebf8f1 100644 --- a/AmplifyPlugins/Auth/Sources/AWSCognitoAuthPlugin/Models/Errors/AWSCognitoAuthError.swift +++ b/AmplifyPlugins/Auth/Sources/AWSCognitoAuthPlugin/Models/Errors/AWSCognitoAuthError.swift @@ -5,6 +5,8 @@ // SPDX-License-Identifier: Apache-2.0 // +import Foundation + public enum AWSCognitoAuthError: Error { /// User not found in the system. @@ -111,8 +113,8 @@ public enum AWSCognitoAuthError: Error { case webAuthnConfigurationMissing } -extension AWSCognitoAuthError { - public var localizedDescription: String { +extension AWSCognitoAuthError: LocalizedError { + public var errorDescription: String? { var message: String = "" switch self { case .userNotFound: