TGFError

enum TGFError : NSInteger {}

Represent different errors that might occur in Fido2 client operations.

@since 1.0.0

  • An unexpected and unknown error occurred.

    Declaration

    Objective-C

    TGFErrorUnknownError = 0x01
  • The operation was aborted, either by the user or programmatically.

    Declaration

    Objective-C

    TGFErrorAborted = 0x02
  • The requested operation is not allowed by the security policy.

    Declaration

    Objective-C

    TGFErrorNotAllowed = 0x03
  • The requested operation is not supported by the authenticator or the current environment.

    Declaration

    Objective-C

    TGFErrorNotSupported = 0x04
  • The data provided for the operation (e.g., the FIDO2 request from the server) is malformed or invalid.

    Declaration

    Objective-C

    TGFErrorDataError = 0x05
  • An error occurred while encoding or decoding data, such as a JSON or Base64 operation.

    Declaration

    Objective-C

    TGFErrorEncodingError = 0x06
  • A network error was encountered.

    Declaration

    Objective-C

    TGFErrorNetworkError = 0x07
  • A security-related error occurred, such as a cryptographic failure or a failed integrity check.

    Declaration

    Objective-C

    TGFErrorSecurityError = 0x08
  • The user has not enrolled the required authenticator.

    Declaration

    Objective-C

    TGFErrorUserNotEnrolled = 0x09
  • User is already enrolled.

    Declaration

    Objective-C

    TGFErrorUserAlreadyEnrolled = 0x0a
  • The user is locked out of the authenticator due to too many failed attempts.

    Declaration

    Objective-C

    TGFErrorUserLockout = 0x0b
  • An unsafe operating environment was detected (e.g., a jailbroken device).

    Declaration

    Objective-C

    TGFErrorUnsafeEnvironmentDetected = 0x0d
  • An error occurred while using Apple’s platform authenticator services (e.g., Touch ID / Face ID).

    Declaration

    Objective-C

    TGFErrorApplePlatformAuthorizationError = 0x0e
  • No authenticators matching the request policy were found on the device.

    Declaration

    Objective-C

    TGFErrorNoAvailableAuthenticators = 0x0f
  • The provided PIN does not meet the required complexity rules.

    Declaration

    Objective-C

    TGFErrorPinRuleValidationFailed = 0x12
  • The operation failed because the client’s origin does not match the Relying Party ID’s domain.

    Declaration

    Objective-C

    TGFErrorDomainBindingFailed = 0x13
  • An error occurred during an internal data migration. If this persists, the SDK need to be reset.

    Declaration

    Objective-C

    TGFErrorDataMigrationFailed = 0x14