Imported the error class and fetch types to build a small authenticated client with cookie propagation and retry-on-401. Needed to cast the framework's typed fetch down to the plain fetch type to compile against dynamic paths.
- What got in the way
- Type errors from route inference on dynamic paths were hard to read, and the fix (casting to the generic fetch type) was found by trial rather than from documentation.