diff --git a/src/casdoor/main.py b/src/casdoor/main.py index b9f9ee9..156efb1 100644 --- a/src/casdoor/main.py +++ b/src/casdoor/main.py @@ -223,7 +223,7 @@ def refresh_oauth_token(self, refresh_token: str, scope: str = "") -> str: return 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. @@ -241,6 +241,7 @@ def parse_jwt_token(self, token: str) -> dict: certificate.public_key(), algorithms=self.algorithms, audience=self.client_id, + **kwargs ) return return_json