summaryrefslogtreecommitdiffstats
path: root/src/auth/claims.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/auth/claims.rs')
-rw-r--r--src/auth/claims.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/auth/claims.rs b/src/auth/claims.rs
index 6940844..9087598 100644
--- a/src/auth/claims.rs
+++ b/src/auth/claims.rs
@@ -4,7 +4,6 @@ use axum::{
http::{
header::{AUTHORIZATION, SET_COOKIE},
request::Parts,
- HeaderValue,
},
response::{IntoResponse, IntoResponseParts},
RequestPartsExt,
@@ -181,7 +180,7 @@ impl IntoResponseParts for RefreshClaims {
) -> Result<axum::response::ResponseParts, Self::Error> {
res.headers_mut().append(
AUTHORIZATION,
- HeaderValue::try_from(format!("Bearer {}", JWT.encode(&self)?))?,
+ format!("Bearer {}", JWT.encode(&self)?).try_into()?,
);
Ok(res)