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 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 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 mediation types.


AttachDeviceFailed

AttachDeviceFailed = "attach_device_failed"

When the call to attachDeviceToSession fails


DetachDeviceFailed

DetachDeviceFailed = "detach_device_failed"

When the call to 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