Set expiration date.
Set expiration date as duration from now.
Example:
credential { expires(365.days) // Expires in 1 year}