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/react.mjs CHANGED
@@ -946,7 +946,7 @@ function FaceCaptureModal({
946
946
  if (stopped || cancelledRef.current) return;
947
947
  try {
948
948
  if (mobileSeen) {
949
- const result = await client.getEventBasedFaceVerificationSessionStatus(session.reference);
949
+ const result = await client.getEventBasedFaceVerificationSessionStatus(session.token);
950
950
  if (result.status === "accepted") {
951
951
  setStage({ kind: "accepted", result });
952
952
  stopped = true;
@@ -1034,7 +1034,7 @@ function FaceCaptureModal({
1034
1034
  while (Date.now() < deadline) {
1035
1035
  if (settled || cancelledRef.current) return null;
1036
1036
  try {
1037
- const r = await client.getEventBasedFaceVerificationSessionStatus(ref);
1037
+ const r = await client.getEventBasedFaceVerificationSessionStatus(session.token);
1038
1038
  if (isFreshPollResult(r)) return r;
1039
1039
  } catch {
1040
1040
  }