PasswordChangeRecoverableError
public enum PasswordChangeRecoverableError : RecoverableError
extension PasswordChangeRecoverableError: LocalizedError
The recoverable error that can occur when changing a password.
When this error occurs, the changePassword(context:handler:)
method will be invoked again.
This error will be returned by the lastRecoverableError
.
-
Bad credentials were provided.
Declaration
Swift
case InvalidPassword
-
Provided new password is identical with the one to be changed.
Declaration
Swift
case OldPasswordEqualsNewPassword
-
The provided password has failed the validation done in
validatePasswordForPasswordChange(_:onSuccess:onError:)
.Declaration
Swift
case CustomValidationError(message: String, cause: Error? = nil)
Parameters
message
Additional information about the error.
cause
The underlying error that is related to the error occurred.
-
A message describing what error occurred.
Declaration
Swift
public var errorDescription: String? { get }