diff --git a/src/casdoor/async_main.py b/src/casdoor/async_main.py index ce72a3a..6853923 100644 --- a/src/casdoor/async_main.py +++ b/src/casdoor/async_main.py @@ -242,7 +242,7 @@ async def refresh_oauth_token(self, refresh_token: str, scope: str = "") -> str: token = await self.refresh_token_request(refresh_token, scope) return token.get("access_token") - def parse_jwt_token(self, token: str) -> Dict: + def parse_jwt_token(self, token: str, **kwargs) -> Dict: """ Converts the returned access_token to real data using jwt (JSON Web Token) algorithms. @@ -257,6 +257,7 @@ def parse_jwt_token(self, token: str) -> Dict: certificate.public_key(), algorithms=self.algorithms, audience=self.client_id, + **kwargs, ) return return_json