pub async fn token_lifetime_for(
pool: &PgPool,
user: Uuid,
asked: TokenLifetime,
sso_idle_days: u32,
) -> AppResult<TokenLifetime>Expand description
The lifetime of a new token of user: for a single sign-on user capped by
TEAMCRAFT_OIDC_TOKEN_IDLE_DAYS (sso_idle_days, 0 = off; issue #173),
for anybody else as asked.