We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e99332d commit ff21fe5Copy full SHA for ff21fe5
1 file changed
packages/hypergraph/src/identity/get-verified-identity.ts
@@ -19,6 +19,9 @@ export const getVerifiedIdentity = async (
19
if (signaturePublicKey && appId) {
20
throw new Error('Cannot specify both signaturePublicKey and appId');
21
}
22
+ if (!signaturePublicKey && !appId) {
23
+ throw new Error('Must specify either signaturePublicKey or appId');
24
+ }
25
const storeState = store.getSnapshot();
26
const identity = storeState.context.identities[accountAddress]?.find((identity) => {
27
if (signaturePublicKey) {
0 commit comments