diff --git a/src/utils/use_decoding_keys.rs b/src/utils/use_decoding_keys.rs deleted file mode 100644 index 7603bc8..0000000 --- a/src/utils/use_decoding_keys.rs +++ /dev/null @@ -1,21 +0,0 @@ -use jsonwebtoken::{DecodingKey, EncodingKey}; -use once_cell::sync::Lazy; - -struct Keys { - encoding: EncodingKey, - decoding: DecodingKey, -} - -impl Keys { - fn new(secret: &[u8]) -> Self { - Self { - encoding: EncodingKey::from_secret(secret), - decoding: DecodingKey::from_secret(secret), - } - } -} - -static KEYS: Lazy = Lazy::new(|| { - let secret = Alphanumeric.sample_string(&mut rand::thread_rng(), 60); - Keys::new(secret.as_bytes()) -});