lobehub/packages/desktop-bridge
Innei 1276a87b0f
feat(trpc): add response metadata and auth header handling (#11816)
*  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.
2026-01-25 20:39:51 +08:00
..
src feat(trpc): add response metadata and auth header handling (#11816) 2026-01-25 20:39:51 +08:00
package.json ♻️ refactor: refactor implement for desktop 2025-12-24 12:54:36 +08:00