File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed
packages/builder/src/components/providers/identity Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -96,6 +96,12 @@ export const fetchVerifiableCredential = async (
96
96
throw new VerificationError ( "No credential found" ) ;
97
97
}
98
98
99
+ if ( response . data [ 0 ] . credential == null ) {
100
+ throw new VerificationError (
101
+ "Error verifying ownership - ensure you are a public member of the org"
102
+ ) ;
103
+ }
104
+
99
105
// return everything that was used to create the credential (along with the credential)
100
106
return {
101
107
signature,
@@ -157,9 +163,12 @@ export function openOauthWindow(
157
163
const channel = new BroadcastChannel ( broadcastChannelName ) ;
158
164
159
165
// timeout after 5 minutes
160
- const timeout = setTimeout ( ( ) => {
161
- reject ( new VerificationError ( "Authorization timed out" ) ) ;
162
- } , 1000 * 60 * 5 ) ;
166
+ const timeout = setTimeout (
167
+ ( ) => {
168
+ reject ( new VerificationError ( "Authorization timed out" ) ) ;
169
+ } ,
170
+ 1000 * 60 * 5
171
+ ) ;
163
172
164
173
channel . addEventListener ( "message" , ( event : any ) => {
165
174
const eventData = event . data as {
You can’t perform that action at this time.
0 commit comments