Hi, since v5, looks like the error.name is always WebAuthnError, so if I want to show a translated message on my app, the only way to distinguish between errors is to check the message (which may change).
Previously this code (which is taken from the examples)
Hi, since v5, looks like the
error.name
is alwaysWebAuthnError
, so if I want to show a translated message on my app, the only way to distinguish between errors is to check the message (which may change).Previously this code (which is taken from the examples)
Do you think that it is better to change the name of the error? I can prepare a quick PR for it.