# ErrorCode

## Enumeration Members

### NotInitialized

• **NotInitialized** = `"not_initialized"`

Either the SDK init call failed or another function was called before initializing the SDK

### AuthenticationFailed

• **AuthenticationFailed** = `"authentication_failed"`

When the call to [startAuthentication](/sdk-ref/authnsdk/interfaces/webauthnapis#startauthentication) failed

### AuthenticationAbortedTimeout

• **AuthenticationAbortedTimeout** = `"authentication_aborted_timeout"`

When [authenticate.modal](/sdk-ref/authnsdk/interfaces/webauthnauthenticationflows#modal) or [authenticate.autofill.activate](/sdk-ref/authnsdk/interfaces/autofillhandlers#activate) is called and the modal is closed by the user

### AuthenticationCanceled

• **AuthenticationCanceled** = `"webauthn_authentication_canceled"`

When [register](/sdk-ref/authnsdk/modules#register) is called and the modal is closed when reaching the timeout

### RegistrationFailed

• **RegistrationFailed** = `"registration_failed"`

When the call to [startRegistration](/sdk-ref/authnsdk/interfaces/webauthnapis#startregistration) failed

### AlreadyRegistered

• **AlreadyRegistered** = `"username_already_registered"`

When the user attempted to register an authenticator that contains one of the credentials already registered with the relying party.

### RegistrationAbortedTimeout

• **RegistrationAbortedTimeout** = `"registration_aborted_timeout"`

When [register](/sdk-ref/authnsdk/modules#register) is called and the modal is closed by the user

### RegistrationCanceled

• **RegistrationCanceled** = `"webauthn_registration_canceled"`

When [register](/sdk-ref/authnsdk/modules#register) is called and the modal is closed when reaching the timeout

### AutofillAuthenticationAborted

• **AutofillAuthenticationAborted** = `"autofill_authentication_aborted"`

Passkey autofill authentication was aborted by [abort](/sdk-ref/authnsdk/interfaces/autofillhandlers#abort)

### AuthenticationProcessAlreadyActive

• **AuthenticationProcessAlreadyActive** = `"authentication_process_already_active"`

Passkey authentication is already active. To start a new authentication, abort the current one first by calling [abort](/sdk-ref/authnsdk/interfaces/autofillhandlers#abort)

### InvalidApprovalData

• **InvalidApprovalData** = `"invalid_approval_data"`

The ApprovalData parameter was sent in the wrong format

### FailedToInitCrossDeviceSession

• **FailedToInitCrossDeviceSession** = `"cross_device_init_failed"`

When the call to [initCrossDeviceAuthentication](/sdk-ref/authnsdk/interfaces/webauthnapis#initcrossdeviceauthentication)  failed

### FailedToGetCrossDeviceStatus

• **FailedToGetCrossDeviceStatus** = `"cross_device_status_failed"`

When the call to [getCrossDeviceTicketStatus](/sdk-ref/authnsdk/interfaces/webauthnapis#getcrossdeviceticketstatus)  failed

### Unknown

• **Unknown** = `"unknown"`

When the SDK operation fails on an unhandled error