Skip to content

Commit 2c44da0

Browse files
committed
backend/login: increase max refresh token age to 30 days.
Do this since users complained that they get logged out to fast
1 parent dfb8059 commit 2c44da0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/src/routes/auth/login.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ use crate::{
4040
};
4141

4242
pub const MAX_TOKEN_AGE_MINUTES: i64 = 6;
43-
const MAX_REFRESH_TOKEN_AGE_DAYS: i64 = 7;
43+
const MAX_REFRESH_TOKEN_AGE_DAYS: i64 = 30;
4444

4545
#[derive(Serialize, Deserialize, Clone, Debug, Validate, ToSchema)]
4646
pub struct LoginSchema {

0 commit comments

Comments
 (0)