feat: refresh configuration

This commit is contained in:
cduvray 2023-01-25 08:38:09 +01:00
parent 7b6f8fb4c5
commit 1203163b0c
9 changed files with 189 additions and 58 deletions

View file

@ -29,13 +29,6 @@ pub struct Keys {
}
impl Keys {
fn new(secret: &[u8]) -> Self {
Self {
alg: Algorithm::HS256,
encoding: EncodingKey::from_secret(secret),
decoding: DecodingKey::from_secret(secret),
}
}
fn load_rsa() -> Self {
Self {
alg: Algorithm::RS256,