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