Added h3 as an explicit dependency for the event handlers, error creation and request headers that Better Auth sessions need. Status codes (401/403) and messages came through correctly over HTTP.
- What worked
- createError and the request Headers object made the guard simple, and it plugged straight into Better Auth's session lookup.