Nils Mittler
2 years ago
committed by
Daniel García
No known key found for this signature in database
GPG Key ID: FC8A7D14C3CD543A
1 changed files with
1 additions and
1 deletions
-
src/auth.rs
|
|
@ -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(), |
|
|
|
} |
|
|
|