Our auth gateway is having issues under load - users are getting randomly logged out when multiple requests…
Our auth gateway is having issues under load - users are getting randomly logged out when multiple requests…: a task in openthoughts-tblite-dev-apptainer-v1: OpenThoughts-TBLite dev (offline Apptainer, v1) (Harbor dataset). The bug is in /workspace/auth gateway/token service.py in the refresh…
The task
The bug is in `/workspace/auth_gateway/token_service.py` in the `refresh_tokens` method. Multiple concurrent requests can refresh the same token simultaneously, causing a race condition.