Commit Graph

3 Commits

Author SHA1 Message Date
Your Name
f758297a6e fix(frontend): AuthProvider state drift and double-management
- Remove render-time fallback to module store (auth-session) for roles
- Consolidate login/refresh/clear logic into reusable helpers
- Prevent UI logout flicker on transient /auth/userinfo failures
- Add test to verify module store changes don't pollute provider state

Refs: review-fix-closure-2026-05-28 AuthProvider state convergence
2026-05-29 12:32:02 +08:00
61c19e54ac fix: P1-02 OAuth context propagation and P1-16 AuthProvider double-check
P1-02: OAuth ExchangeCode and GetUserInfo now accept context parameter
       to properly propagate request context to HTTP calls
P1-16: AuthProvider isAuthenticated now uses single source of truth
       (effectiveUser !== null) instead of double-checking both
       React state and module-level function
2026-04-18 19:40:54 +08:00
4718980ab5 feat: admin frontend - React + Vite, auth pages, user management, roles, permissions, webhooks, devices, logs 2026-04-02 11:20:20 +08:00