Repository navigation
What's New
Authentication
- Email/Password Login & Signup — Create an account or log in with your email and password
- JWT Tokens — Secure, stateless authentication with 30-day token expiry
- Password Hashing — bcrypt hashing for secure password storage
Backend Changes
- New
POST /api/auth/signupendpoint — register with email and password - New
POST /api/auth/loginendpoint — returns JWT token - All data routes now require authentication via
Authorization: Bearer <token>header - Added
user_idcolumn to sessions and study_spaces tables - All queries filtered by authenticated user — data is now per-user
Frontend Changes
- New login/signup page at
/loginwith form toggle - Auth context manages JWT token in localStorage
- All pages redirect to
/loginif unauthenticated - All API calls include the auth token in headers
- Logout button on dashboard
Migration
- Existing data automatically assigned to the seeded user account
- Database schema updated with
userstable anduser_idforeign keys
Default Account
- Email: nasa5346@gmail.com
- Password: 53461234@vi)
Tech Stack
- Backend: bcrypt for password hashing, PyJWT for token generation
- Frontend: React context for auth state management
Full Changelog: v0.3.18...v0.4.0