diff --git a/src/client.rs b/src/client.rs index 04ac5a9..8566997 100644 --- a/src/client.rs +++ b/src/client.rs @@ -324,15 +324,15 @@ impl Client { /// - [Error::Json] if the response is not a valid Userinfo document /// - [ErrorUserinfo::MissingSubject] if subject (sub) is missing /// - [ErrorUserinfo::MismatchSubject] if the returned userinfo document and tokens subject mismatch - pub async fn request_userinfo_custom(&self, token: &Token) -> Result + pub async fn request_userinfo_custom(&self, token: &Token) -> Result where - D: StandardClaimsSubject + serde::de::DeserializeOwned + ?Sized, + U: StandardClaimsSubject + serde::de::DeserializeOwned, { match self.config().userinfo_endpoint { Some(ref url) => { let auth_code = token.bearer.access_token.to_string(); - let info: D = self + let info: U = self .http_client .get(url.clone()) .bearer_auth(auth_code)