Skip to content

Commit 113ef1c

Browse files
authored
24 hour expire is too aggressive
1 parent 454ae00 commit 113ef1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/models.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ impl Claims {
8787
.duration_since(UNIX_EPOCH)
8888
.unwrap()
8989
.as_secs() as usize
90-
+ 24 * 60 * 60; // 24 hours from now
90+
+ 14 * 24 * 60 * 60; // 2 weeks from now
9191

9292
Self { sub: user_id, exp }
9393
}

0 commit comments

Comments
 (0)