Skip to content
This repository has been archived by the owner on Oct 2, 2024. It is now read-only.

fix: add some missing sd-jwt types #68

Merged
merged 1 commit into from
Jan 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/authorization-response/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,12 @@ export enum VPTokenLocation {

export type PresentationVerificationResult = { verified: boolean };

export type PresentationVerificationCallback = (args: W3CVerifiablePresentation, presentationSubmissionn) => Promise<PresentationVerificationResult>;
export type PresentationVerificationCallback = (
args: W3CVerifiablePresentation | CompactSdJwtVc,
presentationSubmission: PresentationSubmission
) => Promise<PresentationVerificationResult>;

export type PresentationSignCallback = (args: PresentationSignCallBackParams) => Promise<W3CVerifiablePresentation>;
export type PresentationSignCallback = (args: PresentationSignCallBackParams) => Promise<W3CVerifiablePresentation | CompactSdJwtVc>;

export interface VerifyAuthorizationResponseOpts {
correlationId: string;
Expand Down
Loading