What we learned operating auth for 1k APIs
|
# Summary
Nango, an authentication platform supporting 1,000+ APIs, experienced a critical incident where a bug caused refresh tokens to be discarded for hundreds connections. The incident revealed that many OAuth providers (like Airtable, Atlassian, and Salesforce) automatically invalidate old refresh tokens upon rotation, making the bug irreversible and forcing users to reauthorize.
Operating authentication across diverse APIs exposed significant inconsistencies: providers enforce token rotation differently, some lack reliable expiration signals, and undocumented behaviors only surface in production, requiring Nango to implement provider-specific workarounds like distributed locks and custom refresh timing buffers.