@thunderid/vue 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.
@@ -6503,7 +6503,7 @@ const handlePasskeyRegistration = async (challengeData) => {
6503
6503
  return JSON.stringify(registrationResponse);
6504
6504
  } catch (error) {
6505
6505
  if (error instanceof __thunderid_browser.ThunderIDRuntimeError) throw error;
6506
- if (error instanceof Error) throw new __thunderid_browser.ThunderIDRuntimeError(`Passkey registration failed: ${error.message}`, "browser-webauthn-registration-error", "browser", `WebAuthn registration failed with error: ${error.name}`);
6506
+ if (error instanceof Error) throw new __thunderid_browser.ThunderIDRuntimeError("Passkey registration failed. Please try again.", "browser-webauthn-registration-error", "browser", `WebAuthn registration failed with error: ${error.name}: ${error.message}`);
6507
6507
  throw new __thunderid_browser.ThunderIDRuntimeError("Passkey registration failed due to an unexpected error.", "browser-webauthn-unexpected-error", "browser", "An unexpected error occurred during WebAuthn registration.");
6508
6508
  }
6509
6509
  };
@@ -6543,7 +6543,7 @@ const handlePasskeyAuthentication = async (challengeData) => {
6543
6543
  return JSON.stringify(authenticationResponse);
6544
6544
  } catch (error) {
6545
6545
  if (error instanceof __thunderid_browser.ThunderIDRuntimeError) throw error;
6546
- if (error instanceof Error) throw new __thunderid_browser.ThunderIDRuntimeError(`Passkey authentication failed: ${error.message}`, "browser-webauthn-authentication-error", "browser", `WebAuthn authentication failed with error: ${error.name}`);
6546
+ if (error instanceof Error) throw new __thunderid_browser.ThunderIDRuntimeError("Passkey authentication failed. Please try again.", "browser-webauthn-authentication-error", "browser", `WebAuthn authentication failed with error: ${error.name}: ${error.message}`);
6547
6547
  throw new __thunderid_browser.ThunderIDRuntimeError("Passkey authentication failed due to an unexpected error.", "browser-webauthn-unexpected-error", "browser", "An unexpected error occurred during WebAuthn authentication.");
6548
6548
  }
6549
6549
  };
package/dist/index.js CHANGED
@@ -6477,7 +6477,7 @@ const handlePasskeyRegistration = async (challengeData) => {
6477
6477
  return JSON.stringify(registrationResponse);
6478
6478
  } catch (error) {
6479
6479
  if (error instanceof ThunderIDRuntimeError$1) throw error;
6480
- if (error instanceof Error) throw new ThunderIDRuntimeError$1(`Passkey registration failed: ${error.message}`, "browser-webauthn-registration-error", "browser", `WebAuthn registration failed with error: ${error.name}`);
6480
+ if (error instanceof Error) throw new ThunderIDRuntimeError$1("Passkey registration failed. Please try again.", "browser-webauthn-registration-error", "browser", `WebAuthn registration failed with error: ${error.name}: ${error.message}`);
6481
6481
  throw new ThunderIDRuntimeError$1("Passkey registration failed due to an unexpected error.", "browser-webauthn-unexpected-error", "browser", "An unexpected error occurred during WebAuthn registration.");
6482
6482
  }
6483
6483
  };
@@ -6517,7 +6517,7 @@ const handlePasskeyAuthentication = async (challengeData) => {
6517
6517
  return JSON.stringify(authenticationResponse);
6518
6518
  } catch (error) {
6519
6519
  if (error instanceof ThunderIDRuntimeError$1) throw error;
6520
- if (error instanceof Error) throw new ThunderIDRuntimeError$1(`Passkey authentication failed: ${error.message}`, "browser-webauthn-authentication-error", "browser", `WebAuthn authentication failed with error: ${error.name}`);
6520
+ if (error instanceof Error) throw new ThunderIDRuntimeError$1("Passkey authentication failed. Please try again.", "browser-webauthn-authentication-error", "browser", `WebAuthn authentication failed with error: ${error.name}: ${error.message}`);
6521
6521
  throw new ThunderIDRuntimeError$1("Passkey authentication failed due to an unexpected error.", "browser-webauthn-unexpected-error", "browser", "An unexpected error occurred during WebAuthn authentication.");
6522
6522
  }
6523
6523
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thunderid/vue",
3
- "version": "0.11.0",
3
+ "version": "0.11.2",
4
4
  "description": "Vue SDK for ThunderID",
5
5
  "keywords": [
6
6
  "thunderid",
@@ -58,7 +58,7 @@
58
58
  "dependencies": {
59
59
  "dompurify": "3.4.11",
60
60
  "tslib": "2.8.1",
61
- "@thunderid/browser": "^0.11.0"
61
+ "@thunderid/browser": "^0.11.2"
62
62
  },
63
63
  "publishConfig": {
64
64
  "access": "public"