File tree Expand file tree Collapse file tree
apps/oid4vc-issuance/libs/helpers Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,6 +22,9 @@ type CredentialDisplayItem = {
2222 name : string ;
2323 locale ?: string ;
2424 description ?: string ;
25+ background_image ?: { uri : string } ;
26+ background_color ?: string ;
27+ text_color ?: string ;
2528} ;
2629type Appearance = {
2730 display : CredentialDisplayItem [ ] ;
@@ -368,12 +371,19 @@ export function buildCredentialConfigurationsSupported(templateRows: any): Recor
368371 name : displayEntry . name ,
369372 description : displayEntry . description ,
370373 locale : displayEntry . locale ,
371- logo : displayEntry . logo
374+ logo : displayEntry ? .logo
372375 ? {
373376 uri : displayEntry . logo . uri ,
374377 alt_text : displayEntry . logo . alt_text
375378 }
376- : undefined
379+ : undefined ,
380+ background_image : displayEntry ?. background_image ?. uri
381+ ? {
382+ uri : displayEntry . background_image . uri
383+ }
384+ : undefined ,
385+ background_color : displayEntry . background_color ,
386+ text_color : displayEntry . text_color
377387 } ) ) ?? [ ] ;
378388
379389 // eslint-disable-next-line prefer-destructuring
You can’t perform that action at this time.
0 commit comments