Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
harsh62 committed Dec 5, 2024
1 parent eae02ee commit 28adfbf
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
// SPDX-License-Identifier: Apache-2.0
//

import Foundation

public enum AWSCognitoAuthError: Error {

/// User not found in the system.
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 28adfbf

Please sign in to comment.