Skip to content

feat: add JWT authentication system with register, login, and /me end… - #62

Open
akshara200829-lgtm wants to merge 1 commit into
KDeekshita:mainfrom
akshara200829-lgtm:feature/user-authentication
Open

feat: add JWT authentication system with register, login, and /me end…#62
akshara200829-lgtm wants to merge 1 commit into
KDeekshita:mainfrom
akshara200829-lgtm:feature/user-authentication

Conversation

@akshara200829-lgtm

Copy link
Copy Markdown

Fixes issue #59

  • Add users and refresh_tokens tables via SQLite
  • POST /api/auth/register: hashed password storage with bcrypt
  • POST /api/auth/login: credential validation + JWT + refresh token
  • GET /api/auth/me: token validation, returns user info
  • AuthenticatedUser extractor middleware for protecting future routes

…points

- Add users and refresh_tokens tables via SQLite
- POST /api/auth/register: hashed password storage with bcrypt
- POST /api/auth/login: credential validation + JWT + refresh token
- GET /api/auth/me: token validation, returns user info
- AuthenticatedUser extractor middleware for protecting future routes
- Unblocks issues KDeekshita#15, KDeekshita#17, KDeekshita#18, KDeekshita#20
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