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