omnidiag / frontend /src /context /AuthContext.jsx

Commit History

fix(auth): correctly check role name in isAdmin — roles from /auth/me are objects not strings
430b949

yahyoha Claude Sonnet 4.6 commited on

fix(auth): use absolute API_BASE URLs for auth and admin endpoints
5c11c77

yahyoha Claude Sonnet 4.6 commited on

fix(auth): wire api.setToken() on login, logout, and page reload
910a1cc

yahyoha Claude Sonnet 4.6 commited on

feat(auth): add AuthContext with JWT login/logout and role detection
640ccf9

yahyoha Claude Sonnet 4.6 commited on