Skip to content

attempt_state_invalid

Returned as
The problem's code, and the code of the field it concerns in errors[]
HTTP status
422 Unprocessable Entity
type
https://zautha.com/docs/errors/attempt_state_invalid

The SDK called a step the attempt cannot take now: a strategy the attempt does not support or has not prepared (for example verifying a code before one was sent), a second step before the first, an attempt that is already complete, or an attempt changed by another request at the same time. Also returned when a sign-in can no longer complete, for example because the user was deleted meanwhile. When one field is at fault (strategy, email_address), errors[] names it.

With the components this does not happen. With @zautha/js, read the attempt’s status and its supported factors before each step, and start a new attempt when the old one cannot continue.