Skip to content

Commit

Permalink
Fix L3-iGrant/api#457: Support for expirationInDays field when creati…
Browse files Browse the repository at this point in the history
…ng credential definition and use it for the issuance.
  • Loading branch information
albinpa authored and georgepadayatti committed Oct 22, 2024
1 parent 5ba002b commit 784466f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sdjwt/sdjwt.py
Original file line number Diff line number Diff line change
Expand Up @@ -538,8 +538,10 @@ def create_w3c_vc_jwt_with_disclosure_mapping_v2(
credential_status: typing.Optional[dict] = None,
terms_of_use: typing.Optional[typing.Union[dict, typing.List[dict]]] = None,
disclosure_mapping: typing.Optional[dict] = None,
expiry_in_seconds: typing.Optional[int] = None,
) -> str:
expiry_in_seconds = 2592000
if not expiry_in_seconds:
expiry_in_seconds = 2592000
issuance_epoch, issuance_8601 = (
get_current_datetime_in_epoch_seconds_and_iso8601_format()
)
Expand Down

0 comments on commit 784466f

Please sign in to comment.