Skip to content

Commit

Permalink
chore: revert isFirstParty flag
Browse files Browse the repository at this point in the history
  • Loading branch information
Brummos committed Jan 22, 2025
1 parent 8eca880 commit fa16634
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/siop-oid4vp/lib/authorization-response/Payload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ 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,
}

Expand Down
1 change: 1 addition & 0 deletions packages/siop-oid4vp/lib/authorization-response/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export interface AuthorizationResponseOpts {
tokenType?: string
refreshToken?: string
presentationExchange?: PresentationExchangeResponseOpts
isFirstParty?: boolean
}

export interface PresentationExchangeResponseOpts {
Expand Down
1 change: 1 addition & 0 deletions packages/siop-oid4vp/lib/op/OP.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ export class OP {
issuer?: ResponseIss | string
verification?: Verification
presentationExchange?: PresentationExchangeResponseOpts
isFirstParty?: boolean
},
): Promise<AuthorizationResponseWithCorrelationId> {
if (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ export const AuthorizationResponseOptsSchemaObj = {
},
"presentationExchange": {
"$ref": "#/definitions/PresentationExchangeResponseOpts"
},
"isFirstParty": {
"type": "boolean"
}
},
"required": [
Expand Down
1 change: 1 addition & 0 deletions packages/siop-oid4vp/lib/types/SIOP.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ 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
}
Expand Down

0 comments on commit fa16634

Please sign in to comment.