From 2fce987d86a25db77e95b1a50b244b5a58cce30a Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Thu, 9 May 2024 08:02:07 +0300 Subject: Use None as default for expires_in --- gn_auth/auth/authentication/oauth2/grants/jwt_bearer_grant.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gn_auth/auth') diff --git a/gn_auth/auth/authentication/oauth2/grants/jwt_bearer_grant.py b/gn_auth/auth/authentication/oauth2/grants/jwt_bearer_grant.py index 5e12575..d663aaf 100644 --- a/gn_auth/auth/authentication/oauth2/grants/jwt_bearer_grant.py +++ b/gn_auth/auth/authentication/oauth2/grants/jwt_bearer_grant.py @@ -20,7 +20,7 @@ class JWTBearerTokenGenerator(_JWTBearerTokenGenerator): DEFAULT_EXPIRES_IN = 300 def get_token_data(#pylint: disable=[too-many-arguments] - self, grant_type, client, expires_in=300, user=None, scope=None + self, grant_type, client, expires_in=None, user=None, scope=None ): """Post process data to prevent JSON serialization problems.""" tokendata = super().get_token_data( -- cgit v1.2.3