From e7af89f1cde33877479156797fbb1d9283ba61c5 Mon Sep 17 00:00:00 2001 From: Simon Goller Date: Thu, 13 Jun 2024 07:59:25 +0200 Subject: [PATCH] Set session duration to 50 minutes --- rest/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rest/src/lib.rs b/rest/src/lib.rs index cd01b09..15bf403 100644 --- a/rest/src/lib.rs +++ b/rest/src/lib.rs @@ -310,7 +310,7 @@ pub async fn start_server(rest_state: RestState) { let session_layer = SessionManagerLayer::new(session_store) .with_secure(true) .with_same_site(SameSite::Strict) - .with_expiry(Expiry::OnInactivity(Duration::minutes(2))); + .with_expiry(Expiry::OnInactivity(Duration::minutes(50))); let oidc_auth_service = ServiceBuilder::new() .layer(HandleErrorLayer::new(|e: MiddlewareError| async {