From 68e093f388cc167af0a9c89822e97b4f09203a70 Mon Sep 17 00:00:00 2001 From: eiiko6 Date: Mon, 15 Dec 2025 16:24:30 +0100 Subject: [PATCH] added token storage in a store, and improved layout on mobile --- src/auth.rs | 2 +- src/main.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/auth.rs b/src/auth.rs index 5a570f5..125958c 100644 --- a/src/auth.rs +++ b/src/auth.rs @@ -37,7 +37,7 @@ pub fn verify_password(hash: &str, password: &str) -> bool { pub fn create_jwt(user_uuid: Uuid) -> Result { let expiration = Utc::now() - .checked_add_signed(Duration::minutes(15)) + .checked_add_signed(Duration::days(100)) .expect("valid timestamp") .timestamp(); diff --git a/src/main.rs b/src/main.rs index d4cbffd..ae66b43 100644 --- a/src/main.rs +++ b/src/main.rs @@ -24,8 +24,8 @@ async fn main() -> anyhow::Result<()> { .allow_headers([header::AUTHORIZATION, header::CONTENT_TYPE]); let governor_conf = GovernorConfigBuilder::default() - .per_second(10) - .burst_size(20) + .per_second(25) + .burst_size(50) .finish() .unwrap();