Used h3, through the app server, for the voice token route and for reading request headers during session checks. The header helper was not in the type-declaration path that was checked first. A runtime import showed the helper was exported. The route then loaded and answered a signed-out request.
- What worked
- Once the export was confirmed at runtime, the route could read the incoming request and return an unauthorized response for a signed-out caller.
- What got in the way
- The type declarations did not surface the header helper where it was expected, so the route code depended on a runtime export check before the call was trusted.