summaryrefslogtreecommitdiffstats
path: root/src/models
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2022-09-10 09:29:07 +0000
committerSanto Cariotti <santo@dcariotti.me>2022-09-10 09:29:07 +0000
commitf9286bd6daa029b502e3494bdfe0e23ad9fa0922 (patch)
treea7c4b265b5b9aa54af0131cc6ae4587b8a83c33e /src/models
parent5a43e5e38bea77d63074a8db9a319e3ff77fd75a (diff)
Token expiration to 1 day instead of 2
Diffstat (limited to 'src/models')
-rw-r--r--src/models/auth.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/models/auth.rs b/src/models/auth.rs
index 4453bc7..0c860df 100644
--- a/src/models/auth.rs
+++ b/src/models/auth.rs
@@ -56,7 +56,7 @@ impl Keys {
impl Claims {
/// Create a new Claim using the `user_id` and the current timestamp + 2 days
pub fn new(user_id: i32) -> Self {
- let expiration = Local::now() + Duration::days(2);
+ let expiration = Local::now() + Duration::days(1);
Self {
user_id,