From 3de9d7f71fdc5cb645524d4e3905f38e6f4e58a2 Mon Sep 17 00:00:00 2001 From: Adam Evans <260708+forficate@users.noreply.github.com> Date: Tue, 31 Aug 2021 19:42:40 +1000 Subject: [PATCH] Fixes #28 https://github.com/davidgraeff/firestore-db-and-auth-rs/issues/28, allow cookie greater than sixty minutes. Signed-off-by: Adam Evans <260708+forficate@users.noreply.github.com> --- src/sessions.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sessions.rs b/src/sessions.rs index 8bd4838..706b7a8 100644 --- a/src/sessions.rs +++ b/src/sessions.rs @@ -353,7 +353,7 @@ pub mod session_cookie { duration: chrono::Duration, ) -> Result { // Generate the assertion from the admin credentials - let assertion = crate::jwt::session_cookie::create_jwt_encoded(credentials, duration)?; + let assertion = crate::jwt::session_cookie::create_jwt_encoded(credentials, chrono::Duration::minutes(1))?; // Request Google Oauth2 to retrieve the access token in order to create a session cookie let client = reqwest::blocking::Client::new();