Skip to content

Commit b3fa160

Browse files
Merge pull request #1582 from credebl/fix/oidc-issues
fix: fixed issue with credential display attribute to include missing values (background_image, background_color, text_color)
2 parents d4c3f68 + 1df5ec9 commit b3fa160

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

apps/oid4vc-issuance/libs/helpers/issuer.metadata.ts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff 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
};
2629
type 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

0 commit comments

Comments
 (0)