Skip to content

Feature/auth login#11

Open
erkinavcii wants to merge 4 commits into
mainfrom
feature/auth-login
Open

Feature/auth login#11
erkinavcii wants to merge 4 commits into
mainfrom
feature/auth-login

Conversation

@erkinavcii
Copy link
Copy Markdown
Collaborator

No description provided.

- Added auth router with /api/auth/login endpoint

- Admin user stored in MongoDB with bcrypt hashed password via seed.py

- Created Login.tsx with glassmorphism premium dark UI

- useAuthStore (Zustand) for token persistence in localStorage

- Axios request interceptor auto-attaches Bearer token

- ProtectedRoute in App.tsx guards all internal pages

- Logout button added to Sidebar, clears token and redirects to /login

- 401 response interceptor auto-logs out on expired token
- Added PyJWT and bcrypt to backend requirements

- Verified lucide-react in frontend package.json
- The missing tr.json file caused haversine distance to fallback to 0.0

- Added coordinates for 24 major Turkish cities

- Fixes AI triage score calculations
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant