Fix token parameter naming in user info request (#50)

This commit is contained in:
Encotric
2025-03-11 21:02:04 +01:00
parent e77a5d09c0
commit 4fb34cb0ba

View File

@@ -207,7 +207,7 @@ class OicClient:
self, token: AccessTokenResponse
) -> OpenIDSchema | UserInfoErrorResponse | ErrorResponse:
"""Get user info from the token"""
return self.client.do_user_info_request(access_token=token["access_token"])
return self.client.do_user_info_request(token=token["access_token"])
def check_validity(
self, token: AccessTokenResponse