Skip to content

Commit

Permalink
chore: fixed slAddStatusToSdJwtCredential condition
Browse files Browse the repository at this point in the history
  • Loading branch information
sanderPostma committed Feb 4, 2025
1 parent a860bed commit e01a8e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/oid4vci-issuer/src/functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ export async function getCredentialSignerCallback(
}

if (contextHasPlugin<IStatusListPlugin>(context, 'slAddStatusToCredential')) {
if (sdJwtPayload.status && sdJwtPayload.status.status_list) {
if ((sdJwtPayload.status && sdJwtPayload.status.status_list) || (statusListOpts && statusListOpts.length > 0)) {
// Add status list if enabled (and when the input has a credentialStatus object (can be empty))
const credentialStatusVC = await context.agent.slAddStatusToSdJwtCredential({ credential: sdJwtPayload, statusListOpts })
if (sdJwtPayload.status?.status_list?.idx) {
Expand Down

0 comments on commit e01a8e4

Please sign in to comment.