From 0614c4cad06c5191ed45e3aca6a02fbb3e839ff4 Mon Sep 17 00:00:00 2001 From: StNicolay Date: Sat, 3 Aug 2024 20:48:43 +0300 Subject: [PATCH] Expanded token lifespan to 30 days --- src/endpoints/authorization/auth_post.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/endpoints/authorization/auth_post.rs b/src/endpoints/authorization/auth_post.rs index 7508711..817a310 100644 --- a/src/endpoints/authorization/auth_post.rs +++ b/src/endpoints/authorization/auth_post.rs @@ -13,7 +13,7 @@ pub struct Params { fn get_exp() -> i64 { let mut time = chrono::Utc::now(); - time += TimeDelta::minutes(30); + time += TimeDelta::days(30); time.timestamp() }