Skip to content

Commit 715e0e8

Browse files
committed
Merge branch 'chore/update-ld-domain' of github.com:docknetwork/react-native-sdk into chore/update-ld-domain
2 parents 36d4d6e + d58e426 commit 715e0e8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/core/src/credentials/oidvc.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ export async function acquireOpenIDCredentialFromURI({
2323
holderKeyDocument,
2424
});
2525

26+
if (!response) {
27+
throw new Error('Unable to acquire credential. Please check your credential offer and try again.');
28+
}
29+
2630
if (response.authorizationURL) {
2731
const authorizationCode = await getAuthCode(response.authorizationURL);
2832
response = await credentialServiceRPC.acquireOIDCredential({

0 commit comments

Comments
 (0)