@0xpolygonid/js-sdk 1.38.3 → 1.38.4

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.
@@ -22,7 +22,7 @@ export interface QueryWithFieldName {
22
22
  * @type VerificationResultMetadata
23
23
  */
24
24
  export type VerificationResultMetadata = {
25
- linkID?: number;
25
+ linkID?: bigint;
26
26
  };
27
27
  /**
28
28
  * List of options to customize ProofService
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@0xpolygonid/js-sdk",
3
- "version": "1.38.3",
3
+ "version": "1.38.4",
4
4
  "description": "SDK to work with Polygon ID",
5
5
  "source": "./src/index.ts",
6
6
  "exports": {
@@ -374,7 +374,7 @@ export class AuthHandler
374
374
  throw new Error(`proof response doesn't contain from field`);
375
375
  }
376
376
 
377
- const groupIdToLinkIdMap = new Map<number, { linkID: number; requestId: number | string }[]>();
377
+ const groupIdToLinkIdMap = new Map<number, { linkID: string; requestId: number | string }[]>();
378
378
  // group requests by query group id
379
379
  for (const proofRequest of requestScope) {
380
380
  const groupId = proofRequest.query.groupId as number;
@@ -420,7 +420,7 @@ export class AuthHandler
420
420
  if (linkID && groupId) {
421
421
  groupIdToLinkIdMap.set(groupId, [
422
422
  ...(groupIdToLinkIdMap.get(groupId) ?? []),
423
- { linkID: linkID, requestId: proofResp.id }
423
+ { linkID: linkID.toString(), requestId: proofResp.id }
424
424
  ]);
425
425
  }
426
426
  }
@@ -71,7 +71,7 @@ export interface QueryWithFieldName {
71
71
  * @type VerificationResultMetadata
72
72
  */
73
73
  export type VerificationResultMetadata = {
74
- linkID?: number;
74
+ linkID?: bigint;
75
75
  };
76
76
 
77
77
  /**
@@ -272,7 +272,7 @@ export class ProofService implements IProofService {
272
272
  };
273
273
  const pubSignals = await this._pubSignalsVerifier.verify(proofResp.circuitId, verifyContext);
274
274
 
275
- return { linkID: (pubSignals as unknown as { linkID?: number }).linkID };
275
+ return { linkID: (pubSignals as unknown as { linkID?: bigint }).linkID };
276
276
  }
277
277
 
278
278
  /** {@inheritdoc IProofService.generateProof} */