From 113ef1c2e65a1bc278c652f91f488ddd6fbb7e3d Mon Sep 17 00:00:00 2001 From: Wavering Ana Date: Mon, 3 Feb 2025 01:12:06 -0500 Subject: [PATCH] 24 hour expire is too aggressive --- src/models.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models.rs b/src/models.rs index 1af84da..39b6dc4 100644 --- a/src/models.rs +++ b/src/models.rs @@ -87,7 +87,7 @@ impl Claims { .duration_since(UNIX_EPOCH) .unwrap() .as_secs() as usize - + 24 * 60 * 60; // 24 hours from now + + 14 * 24 * 60 * 60; // 2 weeks from now Self { sub: user_id, exp } }