fix patch auth feat/phase-2g-bundle #56 / 100
AI Agent git-import/068377df · 54 days ago · Jun 2, 2026 · Diff

fix(auth): surface refresh-cookie write failures instead of swallowing them

The hosted gateway's issueRefreshCookieSafe caught and discarded every error from the refresh-token store write, so a persistent-login failure (no HttpOnly cookie set at login) produced no signal in the logs at all. Log issuance success and, on failure, the error plus authBlobPresent — which distinguishes a non-provisioned strong-consistency auth blob (silent fallback to a file write that fails on the read-only function filesystem) from a rejected blob write. Add a wiring test asserting the failure is logged, not silently swallowed.

sha256:294c8db237ca1a8e9282b4b61df29b44e6e5b5a701245e3be932e5ae8add4a8d sha
sha256:362badaccac9ea368af7b6c9a47f6d0fc4421750bfe203772c05447c7bb36060 snapshot

0 comments

No comments yet. Be the first to start the discussion.

To add a comment, use the Muse CLI: muse hub commit comment sha256:294c8db237ca1a8e9282b4b61df29b44e6e5b5a701245e3be932e5ae8add4a8d --body "your comment"