Pros: Simple, no complex flows Cons: Can't act on behalf of users, no granular permissions
❌ Storing tokens unencrypted: Always encrypt access/refresh tokens ❌ No token refresh: Tokens expire, implement refresh flow ❌ Synchronous webhook processing: Process webhooks in background jobs ❌ No idempotency: Webhooks may be delivered multiple times ❌ Ignoring rate limits: Implement client-side rate limiting
❌ Poor error messages: Show helpful errors, not "API Error 500" ❌ No retry logic: APIs are unreliable, always retry with backoff ❌ Missing signature verification: Attackers can forge webhooks
Crea integrazioni API affidabili di terze parti tra cui OAuth, webhook, limitazione della velocità, gestione degli errori e sincronizzazione dei dati. Da utilizzare durante l'integrazione con servizi esterni (Slack, Stripe, Gmail e così via), la creazione di connessioni API, la gestione dei webhook o l'implementazione dei flussi OAuth. Fonte: daffy0208/ai-dev-standards.