Skip to content

Commit

Permalink
refactor: Removed potentially nulls from removeNullUndefined(...) fun…
Browse files Browse the repository at this point in the history
…ction
  • Loading branch information
zoemaas committed Jan 14, 2025
1 parent ec6a13e commit d8fdf44
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/siop-oid4vp/lib/request-object/Payload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ export const createRequestObjectPayload = async (opts: CreateAuthorizationReques
state,
...registration.payload,
claims,
presentation_definition_uri: payload.presentation_definition_uri,
presentation_definition: payload.presentation_definition,
dcql_query: payload.dcql_query,
...(payload.presentation_definition_uri && { presentation_definition_uri: payload.presentation_definition_uri }),
...(payload.presentation_definition && { presentation_definition: payload.presentation_definition }),
...(payload.dcql_query && { dcql_query: payload.dcql_query }),
client_metadata: payload.client_metadata,
iat,
nbf,
Expand Down

0 comments on commit d8fdf44

Please sign in to comment.