messere1 opened a new pull request, #1601:
URL: https://github.com/apache/rocketmq-dashboard/pull/1601

   ## Summary
   - clear every persisted authentication key if a later localStorage write 
fails
   - prevent a new token from being paired with stale user or admin metadata
   - cover partial-write rollback with a quota failure regression test
   
   ## Root cause and impact
   The session was persisted through three independent localStorage writes, but 
failures after the first write were swallowed. A quota or browser-storage 
failure could therefore leave a partial session that was restored on the next 
page load. The rollback keeps the in-memory login usable while ensuring no 
inconsistent browser session survives.
   
   Closes #1598
   
   ## Validation
   - npm test -- --run src/stores/authStorage.test.ts (5 passed)
   - npm run lint -- src/stores/authStorage.ts src/stores/authStorage.test.ts
   - npm run build
   - git diff --check


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to