Skip to content

Commit

Permalink
fix vc structure (#6071)
Browse files Browse the repository at this point in the history
  • Loading branch information
julianjelfs authored Jul 19, 2024
1 parent 5398ec4 commit 04660a2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions frontend/openchat-client/src/openchat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1323,6 +1323,7 @@ export class OpenChat extends OpenChatAgentWorker {
this.config.internetIdentityUrl,
this._authPrincipal,
gate.credential.issuerOrigin,
gate.credential.issuerCanisterId,
gate.credential.credentialType,
gate.credential.credentialArguments,
this.config.iiDerivationOrigin,
Expand Down
5 changes: 5 additions & 0 deletions frontend/openchat-client/src/utils/credentials.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ function getEventHandler(
id: number,
principal: string,
issuerOrigin: string,
issuerCanisterId: string,
credentialType: string,
credentialArguments: unknown,
derivationOrigin: string | undefined,
Expand All @@ -37,6 +38,7 @@ function getEventHandler(
params: {
issuer: {
origin: issuerOrigin,
canisterId: issuerCanisterId,
},
credentialSubject: principal,
credentialSpec: {
Expand Down Expand Up @@ -100,6 +102,7 @@ export function verifyCredential(
iiUrl: string,
principal: string,
issuerOrigin: string,
issuerCanisterId: string,
credentialType: string,
credentialArguments: unknown,
derivationOrigin: string | undefined,
Expand All @@ -112,6 +115,7 @@ export function verifyCredential(
iiUrl,
principal,
issuerOrigin,
issuerCanisterId,
credentialType,
);

Expand All @@ -125,6 +129,7 @@ export function verifyCredential(
reqId,
principal,
issuerOrigin,
issuerCanisterId,
credentialType,
credentialArguments,
derivationOrigin,
Expand Down

0 comments on commit 04660a2

Please sign in to comment.