Skip to content

Commit 1c7ffb8

Browse files
committed
fix: Linter errors
1 parent fafe87f commit 1c7ffb8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

supertokens_python/recipe/session/with_jwt/recipe_implementation.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,13 +160,15 @@ async def jwt_aware_update_access_token_payload(
160160
raise Exception("Error reading JWT from session")
161161

162162
jwt_expiry = decoded_payload.get("exp", 0) - current_time_in_seconds
163+
# pylint: disable=consider-using-max-builtin
163164
if jwt_expiry < 1:
164165
# it can come here if someone calls this function well after
165166
# the access token and the jwt payload have expired. In this case,
166167
# we still want the jwt payload to update, but the resulting JWT should
167168
# not be alive for too long (since it's expired already). So we set it to
168169
# 1 second lifetime.
169170
jwt_expiry = 1
171+
# pylint: enable=consider-using-max-builtin
170172

171173
new_access_token_payload = await add_jwt_to_access_token_payload(
172174
access_token_payload=new_access_token_payload,

0 commit comments

Comments
 (0)