This PR updates WebAuthnAbortService to abort existing WebAuthn calls with an AbortError instead of a string. This allows for error handlers on startAuthentication() to handle the cancelling of Conditional UI with the same logic that would handle the user cancelling out of the WebAuthn modal experience.
This also fixes accidentally broken AbortError error identification during both registration and authentication, so that the enhanced error codes introduced in #367 can properly identify the throwing of AbortError too:
This PR updates
WebAuthnAbortService
to abort existing WebAuthn calls with anAbortError
instead of astring
. This allows for error handlers onstartAuthentication()
to handle the cancelling of Conditional UI with the same logic that would handle the user cancelling out of the WebAuthn modal experience.This also fixes accidentally broken
AbortError
error identification during both registration and authentication, so that the enhanced error codes introduced in #367 can properly identify the throwing ofAbortError
too:Fixes #359.