From 915a0193c0f95a09776dbcf015623bd119319f69 Mon Sep 17 00:00:00 2001 From: Timo Glastra Date: Thu, 25 Jan 2024 14:28:54 +0700 Subject: [PATCH] fix: add some missing sd-jwt types Signed-off-by: Timo Glastra --- src/authorization-response/types.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/authorization-response/types.ts b/src/authorization-response/types.ts index 750edf5..ca1954d 100644 --- a/src/authorization-response/types.ts +++ b/src/authorization-response/types.ts @@ -89,9 +89,12 @@ export enum VPTokenLocation { export type PresentationVerificationResult = { verified: boolean }; -export type PresentationVerificationCallback = (args: W3CVerifiablePresentation, presentationSubmissionn) => Promise; +export type PresentationVerificationCallback = ( + args: W3CVerifiablePresentation | CompactSdJwtVc, + presentationSubmission: PresentationSubmission +) => Promise; -export type PresentationSignCallback = (args: PresentationSignCallBackParams) => Promise; +export type PresentationSignCallback = (args: PresentationSignCallBackParams) => Promise; export interface VerifyAuthorizationResponseOpts { correlationId: string;