Update dependencies (#753)

This commit is contained in:
David Pedersen
2022-02-12 17:16:14 +00:00
committed by GitHub
parent 1e51ea9423
commit 409a6651f5
10 changed files with 24 additions and 25 deletions
+1 -1
View File
@@ -12,5 +12,5 @@ tracing-subscriber = { version="0.3", features = ["env-filter"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
headers = "0.3"
jsonwebtoken = "7"
jsonwebtoken = "8.0"
once_cell = "1.8"
+2 -3
View File
@@ -154,17 +154,16 @@ impl IntoResponse for AuthError {
}
}
#[derive(Debug)]
struct Keys {
encoding: EncodingKey,
decoding: DecodingKey<'static>,
decoding: DecodingKey,
}
impl Keys {
fn new(secret: &[u8]) -> Self {
Self {
encoding: EncodingKey::from_secret(secret),
decoding: DecodingKey::from_secret(secret).into_static(),
decoding: DecodingKey::from_secret(secret),
}
}
}