In May 2025, Nango introduced a bug that prevented refreshed credentials from being saved to the database. Although fixed within two hours, this led to hundreds of connections having their access and refresh tokens discarded. For many APIs, this was recoverable as old refresh tokens remained valid, but for others, particularly those with immediate refresh token rotation, connections were permanently lost.
Nango discovered that many API providers, including Airtable and Atlassian, invalidate the old refresh token the moment a new one is issued. Salesforce and Slack can also exhibit this behavior when rotation is enabled. This design, while a security benefit, means that any bug in the token refresh process can irreversibly destroy a connection, forcing users to reauthorize their accounts.
Following the incident, Nango changed its approach to handling refresh tokens, now treating them as critical data rather than cache. The new token is persisted before any other operations, and the persistence path has dedicated regression tests. Platform-level refresh anomalies now trigger immediate alerts to the on-call team.
Nango noted that despite OAuth being a standard, each API provider's implementation behaves differently, with some nuances being undocumented. For example, Airtable can revoke a user's entire authorization if a refresh request uses a stale token, incorrect client credentials, or even if the same refresh request is sent twice after a short grace period. These variations require specific handling and can only be fully understood in production environments.
✨ This summary was generated by AI from the outlets' reporting listed below. It is not independently verified and may contain errors — check the original sources. How BrevFeed works →
One email each morning: the day's tech stories, clustered across outlets and summarized. No account needed.
One email a day. Unsubscribe in one click, any time.
Spend a few minutes, get the whole day. Every topic's top stories in one hands-free rundown — listen, watch, or read the transcript.
▶ Play today's briefNew every morning, and the back catalogue is archived by date.
Nango, an open-source project for API integrations, detailed lessons learned from managing authentication across over 1,000 APIs, highlighting challenges with refresh token rotation and provider-specific OAuth implementations. A critical bug in May 2025 led to lost connections for users of APIs like Airtable and Atlassian due to immediate invalidation of old refresh tokens, necessitating user reauthorization.