CredentialsManagerError

public struct CredentialsManagerError : Auth0Error
extension CredentialsManagerError: Equatable

Represents an error during a Credentials Manager operation.

  • The underlying Error value, if any. Defaults to nil.

    Declaration

    Swift

    public let cause: Error?
  • Description of the error.

    Important

    You should avoid displaying the error description to the user, it’s meant for debugging only.

    Declaration

    Swift

    public var debugDescription: String { get }

Error Cases

  • No credentials were found in the store. This error does not include a cause.

    Declaration

    Swift

    public static let noCredentials: CredentialsManagerError
  • The stored Credentials instance does not contain a Refresh Token. This error does not include a cause.

    Declaration

    Swift

    public static let noRefreshToken: CredentialsManagerError
  • The credentials renewal failed. The underlying AuthenticationError can be accessed via the cause property.

    Declaration

    Swift

    public static let renewFailed: CredentialsManagerError
  • The Biometric authentication failed. The underlying LAError can be accessed via the cause property.

    Declaration

    Swift

    public static let biometricsFailed: CredentialsManagerError
  • The revocation of the Refresh Token failed. The underlying AuthenticationError can be accessed via the cause property.

    Declaration

    Swift

    public static let revokeFailed: CredentialsManagerError
  • The minTTL requested is greater than the lifetime of the renewed Access Token. Request a lower minTTL or increase the Token Expiration setting of your Auth0 API in the Dashboard. This error does not include a cause.

    Declaration

    Swift

    public static let largeMinTTL: CredentialsManagerError

Equatable

  • Conformance to Equatable.

    Declaration

    Swift

    public static func == (lhs: CredentialsManagerError, rhs: CredentialsManagerError) -> Bool

Pattern Matching Operator

  • Matches CredentialsManagerError values in a switch statement.

    Declaration

    Swift

    static func ~= (lhs: CredentialsManagerError, rhs: CredentialsManagerError) -> Bool
  • Matches Error values in a switch statement.

    Declaration

    Swift

    static func ~= (lhs: CredentialsManagerError, rhs: Error) -> Bool