diff --git a/package-lock.json b/package-lock.json index 8531d04..8d5ace6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "1.1.0", "license": "AGPL-3.0", "dependencies": { - "@0xpolygonid/js-sdk": "1.7.2", + "@0xpolygonid/js-sdk": "1.7.4", "@iden3/js-crypto": "1.0.3", "@iden3/js-iden3-core": "1.2.1", "@iden3/js-jsonld-merklization": "1.1.2", @@ -47,9 +47,9 @@ } }, "node_modules/@0xpolygonid/js-sdk": { - "version": "1.7.2", - "resolved": "https://registry.npmjs.org/@0xpolygonid/js-sdk/-/js-sdk-1.7.2.tgz", - "integrity": "sha512-eIkjpNqXDM4w4+zwrvM9wtw3m+Mpy+y9QFywKnZTqiHTJF8qsjMixeEd9d+rKaecyxh1uytU0A+qP3lkfQYN0A==", + "version": "1.7.4", + "resolved": "https://registry.npmjs.org/@0xpolygonid/js-sdk/-/js-sdk-1.7.4.tgz", + "integrity": "sha512-2JgnXblnFeLoIl2AqnHTFjRwmI+/ITbXP6i6+MBAu3FNbn9AUueqHlzj3Be6yPym3PrsX/5QSMAgi2jpUohHeg==", "dependencies": { "ajv": "8.12.0", "ajv-formats": "2.1.1", diff --git a/package.json b/package.json index 7943cb1..b2d2fba 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ }, "dependencies": { "@iden3/js-crypto": "1.0.3", - "@0xpolygonid/js-sdk": "1.7.2", + "@0xpolygonid/js-sdk": "1.7.4", "@iden3/js-iden3-core": "1.2.1", "@iden3/js-jsonld-merklization": "1.1.2", "@iden3/js-jwz": "1.2.1", diff --git a/src/circuits/authV2.ts b/src/circuits/authV2.ts index 24e71e5..ab3a6b4 100644 --- a/src/circuits/authV2.ts +++ b/src/circuits/authV2.ts @@ -19,7 +19,7 @@ export class AuthPubSignalsV2 extends IDOwnershipPubSignals implements PubSignal } verifyQuery(): Promise { - return Promise.resolve(new BaseConfig()); + throw new Error(`authV2 circuit doesn't support queries`); } async verifyStates(resolvers: Resolvers, opts?: VerifyOpts): Promise { diff --git a/src/index.ts b/src/index.ts index cedaa94..7677d84 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,3 +1,4 @@ export * as auth from '@lib/auth/auth'; export * as resolver from '@lib/state/resolver'; export * as protocol from '@lib/types-sdk'; +export { core } from '@0xpolygonid/js-sdk'; \ No newline at end of file