Skip to content

Commit

Permalink
Merge pull request #436 from wwWallet/fix/use-check-url-handle-error
Browse files Browse the repository at this point in the history
Fix: Handle error when userhandle is not available
  • Loading branch information
kkmanos authored Nov 12, 2024
2 parents d8b202d + 2a21a98 commit edae8b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/useCheckURL.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function useCheckURL(urlToCheck: string): {
async function handle(urlToCheck: string) {
const userHandleB64u = keystore.getUserHandleB64u();
if (!userHandleB64u) {
throw new Error("User handle could not be extracted from keystore");
return;
}
const u = new URL(urlToCheck);
if (u.protocol === 'openid-credential-offer' || u.searchParams.get('credential_offer') || u.searchParams.get('credential_offer_uri')) {
Expand Down

0 comments on commit edae8b3

Please sign in to comment.