File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
supertokens_python/recipe/session/with_jwt Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments