SeamCredentialError

public enum SeamCredentialError : Error, Equatable, Hashable

Credential-specific errors returned by the Seam SDK when a credential can’t be used.

if credential.errors.contains(.expired) {
    showExpiredAlert()
}

Note

The order of errors in the errors array reflects priority; handle earlier errors first.
  • The system is waiting for a local credential to become available.

    Declaration

    Swift

    case awaitingLocalCredential
  • The credential has expired and is no longer valid.

    Declaration

    Swift

    case expired
  • User interaction is required to resolve the credential issue.

    Declaration

    Swift

    case userInteractionRequired(RequiredUserInteraction)

    Parameters

    userInteractionRequired

    Specifies the action the user must take to resolve the error.

  • Configuration error requiring developer attention.

    Declaration

    Swift

    case contactSeamSupport
  • The current device is not supported.

    Declaration

    Swift

    case unsupportedDevice
  • An unclassified or unexpected credential error occurred.

    Declaration

    Swift

    case unknown
  • Detailed actions that users must take to resolve a credential issue.

    See more

    Declaration

    Swift

    public enum RequiredUserInteraction : Equatable, Codable, Hashable