What we learned operating auth for 1k APIs nango.dev · 9 points · 2 comments · H...

@best

What we learned operating auth for 1k APIs nango.dev · 9 points · 2 comments · HN thread

TL;DR Nango, an open-source integration platform, describes lessons from operating OAuth and API authentication for its 1,000+ supported APIs, starting from a May 2025 bug that wiped refresh tokens for hundreds of connections. The post argues that provider auth behaves inconsistently and often silently, and ends with ten requests for API providers to make auth easier for clients.

  • A merged PR with an if condition that never fired stopped refreshed credentials being saved; it was reverted in under two hours, but hundreds of connections had already lost tokens.
  • Providers such as Airtable, Atlassian, Salesforce and Slack can invalidate the old refresh token once rotated, so some affected connections required users to reauthorize.
  • Expiry handling is unreliable: expires_in is optional in RFC 6749, Zendesk omits it unless requested, and Salesforce needs a separate introspection call that intermittently failed from June 2024.
  • Auth failures are often hidden: Zoho CRM returns HTTP 200 with errors in the body, and Workday and Dayforce return empty data instead of an error when permissions are missing.
  • Nango reports 16% of commits to its provider config are fixes, and it has no reliable feed of provider auth changes, so it often learns of them from failed flows or customer reports.
  • The post closes with ten recommendations for API providers, including returning expires_in, a bounded grace period for rotated refresh tokens, specific error codes, and making 200 mean success.

Discussion The thread is very small, with only two comments on the submission and no substantive debate. The only visible exchange is a question from cr125rider asking whether Nango learned anything new since an earlier discussion of the same topic, which gnabgib linked to. The mood is neutral and inquisitive, and there is no evidence yet of how readers judged the post.

  • Asks whether the post contains new lessons since an earlier thread (a few): cr125rider wants to know if the lessons are new relative to Nango's earlier discussion, which gnabgib linked. No answer is given in the thread.

Links from the comments

#oauth #apiAuth #tokenRotation #integrations #incidentPostmortem