Interim hand-authored reference. This page is authored from the SeamSDK public Swift sources. See the reference overview for context.
Overview
SeamCredentialError is a public enum that conforms to Error, Equatable, and Hashable. It appears in two places:
- As elements of
SeamCredential.errors— the list of active errors on a credential. - As the associated value of
SeamError.credentialErrors([SeamCredentialError])— thrown bySeam.unlock.
errors array reflects priority — handle earlier errors first.
Cases
| Case | Description |
|---|---|
awaitingLocalCredential | The system is waiting for a local credential to become available. |
expired | The credential has expired and is no longer valid. |
userInteractionRequired(RequiredUserInteraction) | User interaction is required to resolve the credential issue. The associated value specifies what action the user must take. |
contactSeamSupport | A configuration error requires developer attention. Contact Seam support. |
unsupportedDevice | The current device is not supported. |
unknown | An unclassified or unexpected credential error occurred. |
userInteractionRequired(_:)
RequiredUserInteraction that describes what the user must do.
RequiredUserInteraction
RequiredUserInteraction is a nested public enum that conforms to Sendable, Equatable, Codable, and Hashable. It enumerates the specific actions a user must take to resolve a userInteractionRequired error.
Cases
| Case | Description |
|---|---|
completeOtpAuthorization(otpUrl: URL) | The user must complete OTP authorization at the provided URL. The associated otpUrl is the webpage where the OTP should be entered. |
enableInternet | The user must enable internet connectivity. |
enableBluetooth | The user must enable Bluetooth on the device. |
grantBluetoothPermission | The user must grant Bluetooth permission to the app. |
appRestartRequired | The user must restart the app to resolve the issue. |
Example
SeamCredential.errors, SeamError.credentialErrors
