r/SoftwareEngineering • • 16d ago

What we learned operating auth for 1,000+ APIs

https://nango.dev/blog/lessons-from-operating-api-auth-for-900-apis
3 Upvotes

9 comments sorted by

2

u/Nice-Corner9515 16d ago

The empty data on a permissions failure is the part that bothers me most. A failed request gives you something to investigate but an empty result could pass for a quiet day until someone notices records are missing.

4

u/fagnerbrack 16d ago

If you're scanning through:

In May 2025, a bug at Nango discarded refreshed tokens for two hours. Providers like Airtable and Atlassian had already invalidated the old refresh tokens, so users had to reconnect. The team now treats refresh tokens like money: it saves new tokens first and runs one refresh at a time per connection behind a distributed lock. Other lessons: expires_in is optional, so Zendesk and Salesforce tokens die without warning. Zoho, Workday and LastPass report auth errors inside HTTP 200 responses. Figma and Shopify changed auth with little notice, and fixes make up 16% of provider config commits. The post closes with ten requests for API builders, such as always returning expires_in and giving rotated tokens a grace period like Xero's 30 minutes.

If the summary seems inacurate, just downvote and I'll try to delete the comment eventually 👍
Click here for more info, I read all comments

2

u/Marichris_Grigoriu 15d ago

returning auth errors inside a 200 response is genuinely criminal behavior.

1

u/[deleted] 16d ago

[removed] — view removed comment

1

u/AutoModerator 16d ago

Your submission has been moved to our moderation queue to be reviewed; This is to combat spam.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/[deleted] 16d ago

[removed] — view removed comment

1

u/AutoModerator 16d ago

Your submission has been moved to our moderation queue to be reviewed; This is to combat spam.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/[deleted] 16d ago

[removed] — view removed comment

1

u/AutoModerator 16d ago

Your submission has been moved to our moderation queue to be reviewed; This is to combat spam.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.