From 994653d44769c0fedb27809b16e02d54db8da8eb Mon Sep 17 00:00:00 2001 From: Michael Shihjay Chen Date: Fri, 31 Jan 2025 18:46:00 -0800 Subject: [PATCH] debug --- components/credentials.tsx | 4 +++- lib/rp.ts | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/components/credentials.tsx b/components/credentials.tsx index 37000df0..dd4311b9 100644 --- a/components/credentials.tsx +++ b/components/credentials.tsx @@ -136,11 +136,12 @@ export default function Credentials(props:any) { } else { vc_arr.push({'Credentials': 'None presented'}) } + console.log(vc_arr) setVcInstance(vc_arr); }, [props]); useEffect(() => { - load().catch(console.error); + load().catch(console.error); },[load]); if (pendingStatus) { @@ -163,6 +164,7 @@ export default function Credentials(props:any) {

or Gather Verifiable Credentials:

First, make sure you have a Talao Credentials Wallet installed on your smartphone device.

+

Once the wallet is installed, click on Settings and select Wallet Profile, and then select Custom. Leave all settings as it is and save and go back to the Settings screen.

If you are a provider - go to HIE of One-Doximity Verifiable Credentials Issuer to generate a Verifiable Credential.

Then select the Verifiable Credential type below:

diff --git a/lib/rp.ts b/lib/rp.ts index 11eac43f..f59457bd 100644 --- a/lib/rp.ts +++ b/lib/rp.ts @@ -42,7 +42,7 @@ const createAuthRequest = async(nonce:string, state:string, type:string, pd_id:s "fields": [ { "path": [ - "$.email" + "$.vc.credentialSubject.email" ] } ] @@ -112,7 +112,7 @@ const createAuthRequest = async(nonce:string, state:string, type:string, pd_id:s { "id": "1", "name": type + " Verifiable Credential", - "purpose": "We want a VC of this type to proof provider claim", + "purpose": "We want a VC of this type to proof claim", "constraints": constraints, "schema": [ {