From a6f13717ec6c5c1e62c3e8e7bf9a260bb130566b Mon Sep 17 00:00:00 2001 From: Desiders Date: Wed, 18 Dec 2024 20:17:40 +0300 Subject: [PATCH] Change `'static` to `'a` --- src/user_info.rs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/user_info.rs b/src/user_info.rs index be4b94b..c71a974 100644 --- a/src/user_info.rs +++ b/src/user_info.rs @@ -95,12 +95,7 @@ where access_token, require_signed_response: false, response_type: UserInfoResponseType::Json, - signed_response_verifier: UserInfoVerifier::new( - self.client_id.clone(), - self.issuer.clone(), - self.jwks.clone(), - expected_subject, - ), + signed_response_verifier: self.user_info_verifier(expected_subject), } } } @@ -116,7 +111,7 @@ where pub(crate) url: &'a UserInfoUrl, pub(crate) access_token: AccessToken, pub(crate) require_signed_response: bool, - pub(crate) signed_response_verifier: UserInfoVerifier<'static, JE, K>, + pub(crate) signed_response_verifier: UserInfoVerifier<'a, JE, K>, pub(crate) response_type: UserInfoResponseType, } impl<'a, JE, K> UserInfoRequest<'a, JE, K>