aboutsummaryrefslogtreecommitdiff
path: root/gn_auth/auth/authentication/oauth2/grants
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-05-09 08:02:07 +0300
committerFrederick Muriuki Muriithi2024-05-13 06:16:34 +0300
commit2fce987d86a25db77e95b1a50b244b5a58cce30a (patch)
tree995ba07d15dc8dd4097494b63a07aeb3ddb903f1 /gn_auth/auth/authentication/oauth2/grants
parent64b5a67d6209c1227c3040553f2a9b9e3bde394a (diff)
downloadgn-auth-2fce987d86a25db77e95b1a50b244b5a58cce30a.tar.gz
Use None as default for expires_in
Diffstat (limited to 'gn_auth/auth/authentication/oauth2/grants')
-rw-r--r--gn_auth/auth/authentication/oauth2/grants/jwt_bearer_grant.py2
1 files changed, 1 insertions, 1 deletions
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(