From 17aa2781c4393fe03136a38e6371b7174353bc8c Mon Sep 17 00:00:00 2001 From: sksadjad Date: Fri, 28 Jun 2024 12:44:01 +0200 Subject: [PATCH] fix: fixed addIssuerBranding step after adding identity --- packages/oid4vci-holder/src/machine/oid4vciMachine.ts | 9 +++++++++ packages/oid4vci-holder/src/types/IOID4VCIHolder.ts | 1 + 2 files changed, 10 insertions(+) diff --git a/packages/oid4vci-holder/src/machine/oid4vciMachine.ts b/packages/oid4vci-holder/src/machine/oid4vciMachine.ts index 33fd08d60..e4c76d1fd 100644 --- a/packages/oid4vci-holder/src/machine/oid4vciMachine.ts +++ b/packages/oid4vci-holder/src/machine/oid4vciMachine.ts @@ -487,6 +487,15 @@ const createOID4VCIMachine = (opts?: CreateOID4VCIMachineOpts): OID4VCIStateMach }, }, }, + [OID4VCIMachineStates.addIssuerBrandingAfterIdentity]: { + id: OID4VCIMachineStates.addIssuerBrandingAfterIdentity, + invoke: { + src: OID4VCIMachineServices.addIssuerBranding, + onDone: { + target: OID4VCIMachineStates.reviewCredentials, + }, + }, + }, [OID4VCIMachineStates.reviewCredentials]: { id: OID4VCIMachineStates.reviewCredentials, on: { diff --git a/packages/oid4vci-holder/src/types/IOID4VCIHolder.ts b/packages/oid4vci-holder/src/types/IOID4VCIHolder.ts index 0bbfbbdf6..60d6e510c 100644 --- a/packages/oid4vci-holder/src/types/IOID4VCIHolder.ts +++ b/packages/oid4vci-holder/src/types/IOID4VCIHolder.ts @@ -154,6 +154,7 @@ export enum OID4VCIMachineStates { transitionFromSetup = 'transitionFromSetup', addContact = 'addContact', addIssuerBranding = 'addIssuerBranding', + addIssuerBrandingAfterIdentity = 'addIssuerBrandingAfterIdentity', transitionFromContactSetup = 'transitionFromContactSetup', selectCredentials = 'selectCredentials', transitionFromSelectingCredentials = 'transitionFromSelectingCredentials',