Skip to content

Commit

Permalink
fix: add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
nanderstabel committed Nov 25, 2024
1 parent 0d0efc7 commit ec50ddb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions agent_holder/src/presentation/aggregate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ impl Aggregate for Presentation {
let header = Header {
alg: get_preferred_signing_algorithm(),
typ: Some("JWT".to_string()),
// TODO: make dynamic
kid: Some(format!("{subject_did}#key-0")),
..Default::default()
};
Expand Down
1 change: 1 addition & 0 deletions agent_identity/src/service/aggregate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ impl Aggregate for Service {
let (issuance_date, expiration_date) = {
let issuance_date = Timestamp::now_utc();
let expiration_date = issuance_date
// TODO: make this configurable
.checked_add(Duration::days(365))
.ok_or(InvalidTimestampError)?;

Expand Down

0 comments on commit ec50ddb

Please sign in to comment.