Skip to main content
Mobile SDK methods can return the following fields when encountering an error.
error
string
A description of the error. This value should only be used for logging or troubleshooting purposes.
errorCode
string
A code which identifies a specific error state. This value can be used to drive application logic such as handling when a passkey is not available on the device.

Error codes

network_error
Indicates that an error occurred when making a network request to the Authsignal API. This will occur if the device has no network connection.
expired_token
Indicates that the Authsignal token has expired. This will occur if more than 10 minutes has elapsed since it was generated by tracking an action or since a previous challenge was completed.
token_not_set
Indicates that no Authsignal has been set to authorize the operation. Learn more about setting a token.
user_canceled
Indicates that the user dismissed the passkey sign-in prompt. On iOS this may also indicate that the user has no passkey credential available on the device.
no_credential
Android only. Indicates that the user has no passkey credential available on the device.
matched_excluded_credential
Indicates that an error occurred when creating a passkey because Authsignal has a record of an existing passkey credential and the platform has determined that it is available on the user’s device. This error will be ignored if ignorePasskeyAlreadyExistsError is set to true when creating a passkey.