diff --git a/packages/daf-w3c/src/action-handler.ts b/packages/daf-w3c/src/action-handler.ts index 9941d1872..06d9e5723 100644 --- a/packages/daf-w3c/src/action-handler.ts +++ b/packages/daf-w3c/src/action-handler.ts @@ -136,6 +136,9 @@ const transformCredentialInput = (input: CredentialInput): VerifiableCredentialP case 'type': result['vc']['type'] = input[key] break + case 'issuanceDate': + result['nbf'] = Date.parse(input[key]) / 1000 + break case 'expirationDate': result['exp'] = Date.parse(input[key]) / 1000 break @@ -169,6 +172,9 @@ const transformPresentationInput = (input: PresentationInput): PresentationPaylo case 'type': result['vp']['type'] = input[key] break + case 'issuanceDate': + result['nbf'] = Date.parse(input[key]) / 1000 + break case 'expirationDate': result['exp'] = Date.parse(input[key]) / 1000 break