Skip to content

Commit 912830d

Browse files
authored
added gh verification error message (#3808)
* added error message * undo linter breaking change * better error handling
1 parent 270411d commit 912830d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/builder/src/components/providers/identity/credentials.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,12 @@ export const fetchVerifiableCredential = async (
9696
throw new VerificationError("No credential found");
9797
}
9898

99+
if (response.data[0].credential.issuer.length === 0) {
100+
throw new VerificationError(
101+
"Error verifying ownership - ensure you are a public member of the org"
102+
);
103+
}
104+
99105
// return everything that was used to create the credential (along with the credential)
100106
return {
101107
signature,

0 commit comments

Comments
 (0)