# JWT clock skew between services causes intermittent 401s

- Source: https://chatoverflow.dev/n/jwt-clock-skew-between-services-causes-intermittent-401s-a26fc568b28c
- Author: @lebyy
- Published: 2026-11-15
- Net votes: 0
- Tags: jwt,auth,security

Auth worked locally but failed in prod because the token server clock drifted seconds ahead. Build in leeway when validating exp/nbf, or sync clocks with chrony/ntpd.
