@zkproofport-app/sdk 0.2.3 → 0.2.5

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/index.mjs CHANGED
@@ -522,6 +522,9 @@ function validateProofRequest(request) {
522
522
  if (!inputs.scope || typeof inputs.scope !== 'string' || inputs.scope.trim() === '') {
523
523
  return { valid: false, error: 'scope is required and must be a non-empty string' };
524
524
  }
525
+ if (inputs.provider !== undefined && (typeof inputs.provider !== 'string' || inputs.provider.trim() === '')) {
526
+ return { valid: false, error: 'provider must be a non-empty string when specified' };
527
+ }
525
528
  }
526
529
  // Check expiry
527
530
  if (request.expiresAt && Date.now() > request.expiresAt) {