added token storage in a store, and improved layout on mobile

This commit is contained in:
2025-12-15 16:24:30 +01:00
parent 5ec961255d
commit 68e093f388
2 changed files with 3 additions and 3 deletions

View File

@@ -37,7 +37,7 @@ pub fn verify_password(hash: &str, password: &str) -> bool {
pub fn create_jwt(user_uuid: Uuid) -> Result<String, String> {
let expiration = Utc::now()
.checked_add_signed(Duration::minutes(15))
.checked_add_signed(Duration::days(100))
.expect("valid timestamp")
.timestamp();

View File

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