Skip to content

Commit ff21fe5

Browse files
committed
improve get-verified-identity
1 parent e99332d commit ff21fe5

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

packages/hypergraph/src/identity/get-verified-identity.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ export const getVerifiedIdentity = async (
1919
if (signaturePublicKey && appId) {
2020
throw new Error('Cannot specify both signaturePublicKey and appId');
2121
}
22+
if (!signaturePublicKey && !appId) {
23+
throw new Error('Must specify either signaturePublicKey or appId');
24+
}
2225
const storeState = store.getSnapshot();
2326
const identity = storeState.context.identities[accountAddress]?.find((identity) => {
2427
if (signaturePublicKey) {

0 commit comments

Comments
 (0)