shorter lived jwt keys

This commit is contained in:
Robin Appelman 2026-11-04 15:15:42 +01:00
commit cbb14a6ae3
Signed by: robin
SSH key fingerprint: SHA256:kifqgrqnut7q1YUIrI0AdMNC23qiKAS/T9uGFmIYvbE

View file

@ -48,7 +48,7 @@ pub fn generate_token(config: &Config, aud: &str) -> Result<String, JwtError> {
aud,
iat: now,
iss: &config.issuer,
exp: now + 3600,
exp: now + (5 * 60),
};
let jwk = Jwk::from_encoding_key(&config.key, Algorithm::RS256)?;