mirror of
https://github.com/lobehub/lobehub.git
synced 2026-03-26 13:19:34 +07:00
* ✨ feat(trpc): add response metadata and auth header handling Add createResponseMeta utility to centralize tRPC response metadata handling. Set X-Auth-Required header for UNAUTHORIZED errors to distinguish real auth failures from other 401 errors. Update all tRPC routes to use the new utility. * ♻️ refactor(desktop-bridge): extract auth constants to shared package Move AUTH_REQUIRED_HEADER and TRPC_ERROR_CODE_UNAUTHORIZED to @lobechat/desktop-bridge for consistent usage across server and desktop.