fix(auth): align auth middleware anonymous paths with RBAC config
- Remove broad /api/auth anonymous path that was matching /api/auth/me - Add specific anonymous paths: /api/auth/login, /api/auth/refresh, /api/auth/bootstrap - Remove /api/auth/logout, /api/auth/2fa/* from anonymous (require auth) - Fix /api/auth/me returning 401 for authenticated users The issue was auth middleware treating /api/auth/me as anonymous due to prefix matching on /api/auth, while RBAC correctly required authentication.
This commit is contained in:
parent
d6866ab73a
commit
cf1b735a4b
2 changed files with 2 additions and 2 deletions
Loading…
Add table
Reference in a new issue