Skip to content

Commit

Permalink
chore: sdJwtDecodedCredentialToUniformCredential fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sanderPostma committed Oct 31, 2024
1 parent 1dc1ad9 commit ed76a55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ssi-types/src/types/sd-jwt-vc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ export const sdJwtDecodedCredentialToUniformCredential = (
}, {} as Record<string, any>)

// Add id to credentialSubject if applicable
if (sub || jti) {
if (!credentialSubject.id && (sub || jti)) {
credentialSubject.id = sub ?? jti
}

Expand Down

0 comments on commit ed76a55

Please sign in to comment.