Articles · Tag
Tagged API.
5 articles on this topic.
- 1 min
Route Handlers in Next.js for webhooks and APIs
POST handlers, raw body parsing for signature verification, dynamic segments, edge vs Node runtime, and idempotent webhook processing.
- Next.js
- Node.js
- API
- 1 min
Stripe webhooks: verification and idempotency
constructEvent, storing event IDs, out-of-order delivery, retries, and connecting webhooks to your domain model safely.
- Stripe
- Node.js
- API
- 1 min
JWT access tokens and refresh rotation in SPAs
HttpOnly cookies vs memory, refresh token reuse detection, sliding sessions, and why BFFs still help browser security.
- Security
- React
- API
- 1 min
tRPC: end-to-end types without GraphQL
Procedures, routers, context, Zod input validation, React Query integration, and boundaries between BFF tRPC and public REST.
- TypeScript
- API
- React
- 3 min
A type-safe client from OpenAPI
openapi-typescript for paths and operations, Orval for React Query hooks, runtime validation with Zod, and CI gates so generated code never drifts from production APIs.
- TypeScript
- API
- DX