summaryrefslogtreecommitdiff
path: root/src/login
diff options
context:
space:
mode:
Diffstat (limited to 'src/login')
-rw-r--r--src/login/extract/identity_token.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/login/extract/identity_token.rs b/src/login/extract/identity_token.rs
index 3be3f09..c813324 100644
--- a/src/login/extract/identity_token.rs
+++ b/src/login/extract/identity_token.rs
@@ -52,7 +52,7 @@ impl<S> FromRequestParts<S> for IdentityToken
where
S: Send + Sync,
{
- type Rejection = Infallible;
+ type Rejection = <CookieJar as FromRequestParts<S>>::Rejection;
async fn from_request_parts(parts: &mut Parts, state: &S) -> Result<Self, Self::Rejection> {
let cookies = CookieJar::from_request_parts(parts, state).await?;
@@ -61,7 +61,7 @@ where
}
impl IntoResponseParts for IdentityToken {
- type Error = Infallible;
+ type Error = <CookieJar as IntoResponseParts>::Error;
fn into_response_parts(self, res: ResponseParts) -> Result<ResponseParts, Self::Error> {
let Self { cookies } = self;