@thunderid/browser 0.11.0 → 0.11.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -3290,7 +3290,7 @@ const handleWebAuthnAuthentication = async (challengeData) => {
|
|
|
3290
3290
|
case "NotSupportedError": throw new ThunderIDRuntimeError("Passkey authentication is not supported on this device or browser. Please use a different authentication method.", "browser-webauthn-not-supported", "browser", "WebAuthn is not supported on the current device or browser configuration.");
|
|
3291
3291
|
case "NetworkError": throw new ThunderIDRuntimeError("Network error during passkey authentication. Please check your connection and try again.", "browser-webauthn-network-error", "browser", "A network error occurred while communicating with the authenticator.");
|
|
3292
3292
|
case "UnknownError": throw new ThunderIDRuntimeError("An unknown error occurred during passkey authentication. Please try again or use a different authentication method.", "browser-webauthn-unknown-error", "browser", "An unidentified error occurred during the WebAuthn authentication process.");
|
|
3293
|
-
default: throw new ThunderIDRuntimeError(
|
|
3293
|
+
default: throw new ThunderIDRuntimeError("Passkey authentication failed. Please try again.", "browser-webauthn-general-error", "browser", `WebAuthn authentication failed with error: ${error.name}: ${error.message}`);
|
|
3294
3294
|
}
|
|
3295
3295
|
throw new ThunderIDRuntimeError("Passkey authentication failed due to an unexpected error.", "browser-webauthn-unexpected-error", "browser", "An unexpected error occurred during WebAuthn authentication.");
|
|
3296
3296
|
}
|