# Enumeration: ErrorCode

## Enumeration Members

### NotInitialized

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

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

### MissingPrepareStep

• **MissingPrepareStep** = `"missing_prepare_step"`

When calling an execute function before the required prepare function

### RegistrationFailed

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

When the call to [completeWebauthnRegistration](/older-versions/guides/webauthn/webauthnapis#completewebauthnregistration) failed

### AuthenticationFailed

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

An authentication call failed

### InvalidAuthSession

• **InvalidAuthSession** = `"invalid_auth_session"`

The `authSessionId` wasn't sent or cannot be found in local storage

### InvalidApprovalData

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

The [ApprovalData](/older-versions/guides/webauthn/overview#approvaldata) parameter was sent in the wrong format

### Unknown

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

When the SDK operation fails on an unhandled error

### InvalidPasskeysMediationType

• **InvalidPasskeysMediationType** = `"invalid_passkeys_mediation_type"`

when passkeysMediationType is not one of the expected [PasskeysMediationType](/older-versions/guides/webauthn/passkeysmediationtype) mediation types.

### AttachDeviceFailed

• **AttachDeviceFailed** = `"attach_device_failed"`

When the call to [attachDeviceToSession](/older-versions/guides/webauthn/webauthnapis#attachdevicetosession) fails

### DetachDeviceFailed

• **DetachDeviceFailed** = `"detach_device_failed"`

When the call to [detachDeviceFromSession](/older-versions/guides/webauthn/webauthnapis#detachdevicefromsession) fails

### UserCanceledWebAuthnRegistration

• **UserCanceledWebAuthnRegistration** = `"user_canceled_webauthn_registration"`

in case the user chooses to cancel registration

### PasskeyAuthenticationAborted

• **PasskeyAuthenticationAborted** = `"passkey_authentication_aborted"`

Passkey autofill authentication was aborted by abortPasskeyAuthentication