@sparkvault/sdk-js 8.1.1 → 8.1.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/sparkvault.cjs.js
CHANGED
|
@@ -5939,11 +5939,18 @@ class OriginNotAllowedView {
|
|
|
5939
5939
|
* Uses extracted handlers for OTP and Passkey operations.
|
|
5940
5940
|
*/
|
|
5941
5941
|
/**
|
|
5942
|
-
* End-user copy for a blocked Identity. Intentionally
|
|
5943
|
-
* the trial, billing, usage, or any owner-facing internal.
|
|
5944
|
-
*
|
|
5942
|
+
* End-user copy for a blocked Identity. Intentionally non-leaky — it never names
|
|
5943
|
+
* the trial, billing, usage, or any owner-facing internal. When the site's
|
|
5944
|
+
* company name is known it is surfaced so the screen reads as the site's own and
|
|
5945
|
+
* the visitor is pointed back to the site for help (never to SparkVault). The
|
|
5946
|
+
* site owner is nudged to subscribe through their own dashboard and emails.
|
|
5945
5947
|
*/
|
|
5946
|
-
|
|
5948
|
+
function blockedSignInMessage(companyName) {
|
|
5949
|
+
const name = companyName?.trim();
|
|
5950
|
+
return name
|
|
5951
|
+
? `Sign-in for ${name} is temporarily unavailable. Please contact them for assistance.`
|
|
5952
|
+
: 'Sign-in is temporarily unavailable. Please contact the site owner for assistance.';
|
|
5953
|
+
}
|
|
5947
5954
|
const BLOCKED_ERROR_CODES = new Set(IDENTITY_BLOCKED_ERROR_CODES);
|
|
5948
5955
|
const SPARKLINK_CSP_BLOCKED_ERROR = {
|
|
5949
5956
|
message: [
|
|
@@ -6582,7 +6589,7 @@ class IdentityRenderer {
|
|
|
6582
6589
|
this.setState({
|
|
6583
6590
|
view: 'error',
|
|
6584
6591
|
code,
|
|
6585
|
-
message:
|
|
6592
|
+
message: blockedSignInMessage(this.verificationState.sdkConfig?.branding?.companyName),
|
|
6586
6593
|
});
|
|
6587
6594
|
return true;
|
|
6588
6595
|
}
|