From 74b00cb66d8e7d7f1fc7148c8861930e8f8dbf98 Mon Sep 17 00:00:00 2001 From: Sadjad Khoshkhou Date: Thu, 19 Sep 2024 16:53:07 +0200 Subject: [PATCH] chore: reverted setting the correlationId in the VerifyAuthorizationResponseOpts of Opts --- packages/siop-oid4vp/lib/rp/Opts.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/siop-oid4vp/lib/rp/Opts.ts b/packages/siop-oid4vp/lib/rp/Opts.ts index b1a34e0e..2a4ef403 100644 --- a/packages/siop-oid4vp/lib/rp/Opts.ts +++ b/packages/siop-oid4vp/lib/rp/Opts.ts @@ -1,4 +1,4 @@ -import { defaultHasher, uuidv4 } from '@sphereon/oid4vc-common' +import { defaultHasher } from '@sphereon/oid4vc-common' import { CreateAuthorizationRequestOpts, PropertyTarget, PropertyTargets, RequestPropertyWithTargets } from '../authorization-request' import { VerifyAuthorizationResponseOpts } from '../authorization-response' @@ -48,11 +48,10 @@ export const createRequestOptsFromBuilderOrExistingOpts = (opts: { builder?: RPB return createRequestOpts } -export const createVerifyResponseOptsFromBuilderOrExistingOpts = (opts: { builder?: RPBuilder; verifyOpts?: VerifyAuthorizationResponseOpts }):VerifyAuthorizationResponseOpts => { +export const createVerifyResponseOptsFromBuilderOrExistingOpts = (opts: { builder?: RPBuilder; verifyOpts?: VerifyAuthorizationResponseOpts }): Partial => { return opts.builder ? { hasher: opts.builder.hasher ?? defaultHasher, - correlationId: uuidv4(), verifyJwtCallback: opts.builder.verifyJwtCallback, verification: { presentationVerificationCallback: opts.builder.presentationVerificationCallback,