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();