mirror of
https://codeberg.org/icewind/rss-webhook-trigger.git
synced 2026-11-30 04:00:49 +01:00
allow generating jwt key at startup
This commit is contained in:
parent
2dcb4f08e5
commit
44ed58f9d8
6 changed files with 369 additions and 67 deletions
|
|
@ -70,6 +70,10 @@ pub enum JwtError {
|
|||
Load(#[from] SecretError),
|
||||
#[error("Error loading JWT secret: {0}")]
|
||||
DecodeKey(#[from] jsonwebtoken::errors::Error),
|
||||
#[error("Error generating RSA key")]
|
||||
GenerateKey(#[from] rsa::Error),
|
||||
#[error("Error encoding generated RSA key")]
|
||||
EncodeKey(#[from] rsa::pkcs8::Error),
|
||||
}
|
||||
|
||||
#[derive(Debug, Error)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue