Skip to main content

session_ttl_from_env

Function session_ttl_from_env 

Source
pub fn session_ttl_from_env() -> Result<Duration, String>
Expand description

AUTH_SESSION_TTL — 30d, 12h, 90m — or DEFAULT_SESSION_TTL when it is not set. A set but invalid value is an error: a startup error, not a silent default.