AuthError
Amplify error raised in the Auth category.
-
Caused by issue in the way auth category is configured
Declaration
Swift
case configuration(ErrorDescription, RecoverySuggestion, _: Error? = nil)
-
Caused by some error in the underlying service. Check the associated error for more details.
Declaration
Swift
case service(ErrorDescription, RecoverySuggestion, _: Error? = nil)
-
Caused by an unknown reason
Declaration
Swift
case unknown(ErrorDescription, _: Error? = nil)
-
Caused when one of the input field is invalid
Declaration
Swift
case validation(Field, ErrorDescription, RecoverySuggestion, _: Error? = nil)
-
Caused when the current session is not authorized to perform an operation
Declaration
Swift
case notAuthorized(ErrorDescription, RecoverySuggestion, _: Error? = nil)
-
Caused when an operation is not valid with the current state of Auth category
Declaration
Swift
case invalidState(ErrorDescription, RecoverySuggestion, _: Error? = nil)
-
Caused when an operation needs the user to be in signedIn state
Declaration
Swift
case signedOut(ErrorDescription, RecoverySuggestion, _: Error? = nil)
-
Caused when a session is expired and needs the user to be re-authenticated
Declaration
Swift
case sessionExpired(ErrorDescription, RecoverySuggestion, _: Error? = nil)
-
Declaration
Swift
public var underlyingError: Error? { get }
-
Declaration
Swift
public var errorDescription: ErrorDescription { get }
-
Declaration
Swift
public var recoverySuggestion: RecoverySuggestion { get }
-
Declaration
Swift
public init( errorDescription: ErrorDescription = "An unknown error occurred", recoverySuggestion: RecoverySuggestion = "(Ignored)", error: Error )
-
Declaration
Swift
public static func == (lhs: AuthError, rhs: AuthError) -> Bool