vesant-sdk 1.7.0-dev.972b614 → 1.7.0-dev.9b89b96

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
@@ -2771,13 +2771,17 @@ var KycClient = class extends BaseClient {
2771
2771
  });
2772
2772
  }
2773
2773
  /**
2774
- * Look up the current state of a Event-Based Face Verification session by its forward
2775
- * reference. Useful for desktop pollers waiting on the mobile handoff.
2774
+ * Look up the current state of a Event-Based Face Verification session by its
2775
+ * session token. Useful for desktop pollers waiting on the mobile handoff.
2776
2776
  *
2777
- * @param reference - The reference used when the session was created.
2777
+ * The lookup is scoped by the unguessable, server-issued session token (not
2778
+ * the enumerable forward reference): the endpoint is public/unauthenticated,
2779
+ * and scoping by the token is what prevents cross-tenant status reads.
2780
+ *
2781
+ * @param token - The session token returned by `createEventBasedFaceVerificationSession`.
2778
2782
  */
2779
- async getEventBasedFaceVerificationSessionStatus(reference) {
2780
- return this.requestWithRetry(`/api/v1/kyc/face/verify/${encodeURIComponent(reference)}`, {
2783
+ async getEventBasedFaceVerificationSessionStatus(token) {
2784
+ return this.requestWithRetry(`/api/v1/kyc/face/verify/${encodeURIComponent(token)}`, {
2781
2785
  method: "GET",
2782
2786
  headers: this.getUserHeaders()
2783
2787
  });