Skip to content

v0.4.0: Email/Password Authentication

Latest

Choose a tag to compare

@AXEUS5346 AXEUS5346 released this 15 Jul 14:07
· 1 commit to main since this release

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/signup endpoint — register with email and password
  • New POST /api/auth/login endpoint — returns JWT token
  • All data routes now require authentication via Authorization: Bearer <token> header
  • Added user_id column to sessions and study_spaces tables
  • All queries filtered by authenticated user — data is now per-user

Frontend Changes

  • New login/signup page at /login with form toggle
  • Auth context manages JWT token in localStorage
  • All pages redirect to /login if 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 users table and user_id foreign keys

Default Account

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