Заказ на фриланс · Разработка и IT › Создание сайта
Resolve JWT 401 Timing Bug
- Бюджет: 2 464 ₽ – 20 532 ₽
- Раздел: Разработка и IT › Создание сайта
- Опубликован: (МСК)
I need help chasing down a stubborn timing issue in my FastAPI application. We use JWT for authentication and, although the login endpoint now works, a handful of users still see a 401 (“Signature has expired”) immediately after a successful login. A second attempt succeeds, and the problem shows up more on the staging server than locally.
Your task is to pinpoint the root cause and patch the existing codebase without touching the overall login flow, users, or database schema. While you are in there, make sure the issued tokens rely strictly on UTC for both iat and exp, introduce a roughly 10-second leeway when validating them, and add a regression test so we never see this again.
Deliverables
• Code patch that eliminates the intermittent 401
• Updated JWT creation/verification logic with UTC timestamps and 10-second tolerance
• One automated test reproducing the old failure and confirming the fix (e.g., with pytest)
• A concise note explaining why it happened and how it was resolved
Acceptance criteria: 50 consecutive logins on the staging environment must complete without a single 401. Protected endpoints must keep functioning exactly as before.
Похожие заказы
- sell my website which is a Student Marketplaces11 101 ₽ – 33 302 ₽ · 27.11.2026
- Cinematic Wedding Highlight Edit888 ₽ – 17 761 ₽ · 27.11.2026
- Teen Novel Manuscript Editing20 532 ₽ – 61 595 ₽ · 27.11.2026
- Website Redesign for Modern Aesthetic43 319 ₽ – 86 637 ₽ · 27.11.2026
- Industrial Inspection Camera Lift/drop20 532 ₽ – 61 595 ₽ · 27.11.2026
- Build Premium Creative Brand Website2 464 ₽ – 20 532 ₽ · 27.11.2026
- Разработка сайтаБюджет по договорённости · 27.11.2026
- Build a Standout Life Insurance Social Presence1 073 ₽ – 1 609 ₽ · 27.11.2026