NextFunction type
Framework-agnostic next callback used by middleware-style functions in the
hosting layer (notably authorizeJWT). Mirrors the shape of Express's
NextFunction so existing Express middleware continues to work unchanged.
type NextFunction = (err?: any) => void