mirror of
https://codeberg.org/icewind/rss-webhook-trigger.git
synced 2026-11-30 12:10:50 +01:00
shorter lived jwt keys
This commit is contained in:
parent
44ed58f9d8
commit
cbb14a6ae3
1 changed files with 1 additions and 1 deletions
|
|
@ -48,7 +48,7 @@ pub fn generate_token(config: &Config, aud: &str) -> Result<String, JwtError> {
|
||||||
aud,
|
aud,
|
||||||
iat: now,
|
iat: now,
|
||||||
iss: &config.issuer,
|
iss: &config.issuer,
|
||||||
exp: now + 3600,
|
exp: now + (5 * 60),
|
||||||
};
|
};
|
||||||
|
|
||||||
let jwk = Jwk::from_encoding_key(&config.key, Algorithm::RS256)?;
|
let jwk = Jwk::from_encoding_key(&config.key, Algorithm::RS256)?;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue