A code which identifies a specific error state. This value can be used to drive application logic
such as when a user encounters a rate limit error.
A description of the error. This value should only be used for logging or troubleshooting
purposes.
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.
invalid_credential
Indicates that the credential (e.g. passkey) being used for verification is invalid. This may occur
if the credential has been removed from the server but still exists on the user’s credential manager.
unknown_credential
Indicates that the passkey credential presented during sign-in is not recognized by the server. This
can occur if the credential was deleted from the server but still exists in the user’s credential
manager. When credential syncing is enabled, the SDK signals the browser to remove the stale
credential so it is no longer offered.
credential_not_found
Indicates that no immediately available passkey credential was found when signing in with
preferImmediatelyAvailableCredentials set to true. Fall back to a standard passkey sign-in or an
alternative authentication method.immediate_mediation_not_supported
Indicates that the current browser does not support immediate mediation UI mode, which is required
when signing in with
preferImmediatelyAvailableCredentials set to true.token_not_set
Indicates that no token has been set before calling a method that requires one. Track an action to
obtain a token, then call
setToken before retrying.too_many_requests
Indicates that the server cannot respond as requests have been rate-limited due to exceeding a
threshold. For example, a user has requested too many OTP codes in a short period of time.

