From 8eca88038f7be99a2fec6863db22ec7c05da4159 Mon Sep 17 00:00:00 2001 From: "A.G.J. Cate" Date: Wed, 22 Jan 2025 14:54:24 +0100 Subject: [PATCH] chore: removed first party flag --- packages/siop-oid4vp/lib/authorization-response/Payload.ts | 1 - packages/siop-oid4vp/lib/authorization-response/types.ts | 1 - packages/siop-oid4vp/lib/op/OP.ts | 1 - .../lib/schemas/AuthorizationResponseOpts.schema.ts | 3 --- packages/siop-oid4vp/lib/types/SIOP.types.ts | 1 - 5 files changed, 7 deletions(-) diff --git a/packages/siop-oid4vp/lib/authorization-response/Payload.ts b/packages/siop-oid4vp/lib/authorization-response/Payload.ts index 6dc5a533..bdd7cc80 100644 --- a/packages/siop-oid4vp/lib/authorization-response/Payload.ts +++ b/packages/siop-oid4vp/lib/authorization-response/Payload.ts @@ -24,7 +24,6 @@ export const createResponsePayload = async ( ...(responseOpts.accessToken && { access_token: responseOpts.accessToken, expires_in: responseOpts.expiresIn || 3600 }), ...(responseOpts.tokenType && { token_type: responseOpts.tokenType }), ...(responseOpts.refreshToken && { refresh_token: responseOpts.refreshToken }), - ...(responseOpts.isFirstParty && { is_first_party: responseOpts.isFirstParty }), state, } diff --git a/packages/siop-oid4vp/lib/authorization-response/types.ts b/packages/siop-oid4vp/lib/authorization-response/types.ts index fe442bfc..8979b649 100644 --- a/packages/siop-oid4vp/lib/authorization-response/types.ts +++ b/packages/siop-oid4vp/lib/authorization-response/types.ts @@ -41,7 +41,6 @@ export interface AuthorizationResponseOpts { tokenType?: string refreshToken?: string presentationExchange?: PresentationExchangeResponseOpts - isFirstParty?: boolean } export interface PresentationExchangeResponseOpts { diff --git a/packages/siop-oid4vp/lib/op/OP.ts b/packages/siop-oid4vp/lib/op/OP.ts index 041e2637..6ec4474d 100644 --- a/packages/siop-oid4vp/lib/op/OP.ts +++ b/packages/siop-oid4vp/lib/op/OP.ts @@ -106,7 +106,6 @@ export class OP { issuer?: ResponseIss | string verification?: Verification presentationExchange?: PresentationExchangeResponseOpts - isFirstParty?: boolean }, ): Promise { if ( diff --git a/packages/siop-oid4vp/lib/schemas/AuthorizationResponseOpts.schema.ts b/packages/siop-oid4vp/lib/schemas/AuthorizationResponseOpts.schema.ts index 3c5afdff..ffb4eee2 100644 --- a/packages/siop-oid4vp/lib/schemas/AuthorizationResponseOpts.schema.ts +++ b/packages/siop-oid4vp/lib/schemas/AuthorizationResponseOpts.schema.ts @@ -52,9 +52,6 @@ export const AuthorizationResponseOptsSchemaObj = { }, "presentationExchange": { "$ref": "#/definitions/PresentationExchangeResponseOpts" - }, - "isFirstParty": { - "type": "boolean" } }, "required": [ diff --git a/packages/siop-oid4vp/lib/types/SIOP.types.ts b/packages/siop-oid4vp/lib/types/SIOP.types.ts index 3314f5b1..1bccd68a 100644 --- a/packages/siop-oid4vp/lib/types/SIOP.types.ts +++ b/packages/siop-oid4vp/lib/types/SIOP.types.ts @@ -179,7 +179,6 @@ export interface AuthorizationResponsePayload { | MdocOid4vpMdocVpToken presentation_submission?: PresentationSubmission verifiedData?: IPresentation | AdditionalClaims - is_first_party?: boolean // eslint-disable-next-line @typescript-eslint/no-explicit-any [x: string]: any }