Using Fiber’s Ctx.Locals to Pass Auth Data Between Middleware and Handlers
Fiber’s Ctx.Locals lets you attach request‑scoped data, like a user record, without global state. This blog walks through an auth‑caching example, discusses type safety, and shows how to verify isolation and correctness.