1
0
Fork 0

Apply Admin Session Lifetime to JWT

Dieser Commit ist enthalten in:
Nils Mittler 2023-02-20 16:51:09 +01:00
Ursprung 9a5f3a5015
Commit 2eb4f290a5

Datei anzeigen

@ -241,7 +241,7 @@ pub fn generate_admin_claims() -> BasicJwtClaims {
let time_now = Utc::now().naive_utc();
BasicJwtClaims {
nbf: time_now.timestamp(),
exp: (time_now + Duration::minutes(20)).timestamp(),
exp: (time_now + Duration::minutes(CONFIG.admin_cookie_lifetime())).timestamp(),
iss: JWT_ADMIN_ISSUER.to_string(),
sub: "admin_panel".to_string(),
}