From 5a567f1ed749377839c78b629cc5e4f9911d4dc1 Mon Sep 17 00:00:00 2001 From: "A.G.J. Cate" Date: Thu, 9 Jan 2025 14:54:17 +0100 Subject: [PATCH] chore: added isFirstParty flag to sendAuthorizationResponse on op session --- packages/siopv2-oid4vp-op-auth/src/session/OpSession.ts | 1 + .../src/types/IDidAuthSiopOpAuthenticator.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/siopv2-oid4vp-op-auth/src/session/OpSession.ts b/packages/siopv2-oid4vp-op-auth/src/session/OpSession.ts index b8fa0fa04..ad3bfaf6f 100644 --- a/packages/siopv2-oid4vp-op-auth/src/session/OpSession.ts +++ b/packages/siopv2-oid4vp-op-auth/src/session/OpSession.ts @@ -360,6 +360,7 @@ export class OpSession { const responseOpts = { verification, issuer, + ...(args.isFirstParty && { isFirstParty: args.isFirstParty }), // TODO update to oid4vp ...(args.verifiablePresentations && { presentationExchange: { verifiablePresentations, diff --git a/packages/siopv2-oid4vp-op-auth/src/types/IDidAuthSiopOpAuthenticator.ts b/packages/siopv2-oid4vp-op-auth/src/types/IDidAuthSiopOpAuthenticator.ts index 047c9d20d..a59d31457 100644 --- a/packages/siopv2-oid4vp-op-auth/src/types/IDidAuthSiopOpAuthenticator.ts +++ b/packages/siopv2-oid4vp-op-auth/src/types/IDidAuthSiopOpAuthenticator.ts @@ -123,6 +123,7 @@ export interface IOpsSendSiopAuthorizationResponseArgs { presentationSubmission?: PresentationSubmission verifiablePresentations?: W3CVerifiablePresentation[] hasher?: Hasher + isFirstParty?: boolean } export enum events {