maxAttemptsExceeded
The allowed capture attempts were exhausted.
Details
It is issued when the user exceeds the number of attempts configured in maxAttempts.
Event: maxAttemptsExceeded
Type: FacephiSelphiWidgetCustomEvent<MaxAttemptsExceededEvent> | CustomEvent<MaxAttemptsExceededEvent>
Syntax
selphi.addEventListener('maxAttemptsExceeded', onMaxAttemptsExceeded);Received object
The useful payload is in event.detail.detail:
eventType(string): Emitted event type.message(string): Brief description of the reason why the attempts were exhausted.
Description
Indicates that the user has consumed all allowed capture attempts and that the widget will not retry the process. Unlike extractionTimeout, which is emitted on each expired attempt and allows retrying, this event marks the end of the capture flow.
The integration must decide here how to proceed: show its own error view, offer an alternative verification channel, or close the process.
Considerations
It is only emitted if maxAttempts is configured with a limit that the engine can exhaust.
The useful payload is in event.detail.detail (see event format).
The widget logs this case in tracking with status EXPIRED and reason SELPHI_MAX_ATTEMPTS.
Example
Last updated