24 hour expire is too aggressive
This commit is contained in:
parent
454ae0017e
commit
113ef1c2e6
1 changed files with 1 additions and 1 deletions
|
@ -87,7 +87,7 @@ impl Claims {
|
||||||
.duration_since(UNIX_EPOCH)
|
.duration_since(UNIX_EPOCH)
|
||||||
.unwrap()
|
.unwrap()
|
||||||
.as_secs() as usize
|
.as_secs() as usize
|
||||||
+ 24 * 60 * 60; // 24 hours from now
|
+ 14 * 24 * 60 * 60; // 2 weeks from now
|
||||||
|
|
||||||
Self { sub: user_id, exp }
|
Self { sub: user_id, exp }
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue