expirationTime

Function that calculates the JWT expiration time based on timeout seconds. Takes the timeout in seconds and returns an Instant representing when the JWT expires. Defaults to current time plus the timeout in seconds.

Return

Instant representing when the JWT should expire

Parameters

timeout

The timeout value in seconds