solana-age-verify-sdk 2.0.0-beta.13 → 2.0.0-beta.14

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.
Files changed (2) hide show
  1. package/dist/verify.js +4 -3
  2. package/package.json +1 -1
package/dist/verify.js CHANGED
@@ -11,12 +11,13 @@ import { createSpinnerHTML } from './ui/spinner';
11
11
  export async function verifyHost18Plus(options) {
12
12
  const config = { ...DEFAULT_CONFIG, ...options.config };
13
13
  // Cooldown & Retry Check
14
- const storageKey = `talkchain_verify_retries_${options.walletPubkeyBase58}`;
15
- const cooldownKey = `talkchain_verify_cooldown_${options.walletPubkeyBase58}`;
14
+ // v2 key prefix resets history for everyone (clearing failed attempts as requested)
15
+ const storageKey = `solana_av_v2_retries_${options.walletPubkeyBase58}`;
16
+ const cooldownKey = `solana_av_v2_cooldown_${options.walletPubkeyBase58}`;
16
17
  const now = Date.now();
17
18
  const cooldownUntil = parseInt(localStorage.getItem(cooldownKey) || '0');
18
19
  const currentRetries = parseInt(localStorage.getItem(storageKey) || '0');
19
- const cooldownCountKey = `talkchain_verify_cooldown_count_${options.walletPubkeyBase58}`;
20
+ const cooldownCountKey = `solana_av_v2_cooldown_count_${options.walletPubkeyBase58}`;
20
21
  const currentCooldownCount = parseInt(localStorage.getItem(cooldownCountKey) || '0');
21
22
  if (cooldownUntil > now) {
22
23
  const remainingSec = Math.ceil((cooldownUntil - now) / 1000);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "solana-age-verify-sdk",
3
- "version": "2.0.0-beta.13",
3
+ "version": "2.0.0-beta.14",
4
4
  "type": "module",
5
5
  "description": "Solana Age Verify is a premium, client-side SDK for privacy-preserving age verification and liveness detection. It generates a deterministic Face Hash linked to a wallet without storing facial data.",
6
6
  "license": "MIT",