Skip to content

Commit

Permalink
After master merge fixes:
Browse files Browse the repository at this point in the history
Add issuance date in `CreateJWTVerifiableCredential` function

`CreateJWTVerifiableCredential` function in 'api_test.go' was updated to further include 'IssuanceDate' for more detailed credential verification.
  • Loading branch information
rolandgroen committed Apr 8, 2024
1 parent 319a58e commit 6e296ba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions auth/api/iam/api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1236,6 +1236,7 @@ func createIssuerCredential(issuerDID did.DID, holderDID did.DID) *vc.Verifiable
Context: []ssi.URI{credential.NutsV1ContextURI},
Type: []ssi.URI{credType},
CredentialSubject: []interface{}{map[string]interface{}{"id": holderDID.String()}},
IssuanceDate: time.Now(),
}
verifiableCredential, _ := vc.CreateJWTVerifiableCredential(nil, template, captureFn)
return verifiableCredential
Expand Down

0 comments on commit 6e296ba

Please sign in to comment.