Skip to content

Conversation

@lnqminh3003
Copy link
Collaborator

No description provided.

lnqminh3003 and others added 7 commits January 13, 2026 00:14
- Add JWT token to login response in auth_controller.ts
  * Import generateToken from jwt_utils
  * Generate token after successful login
  * Return token alongside userId in response

- Add protected /me endpoint in user_route.ts
  * Import and apply authMiddleware
  * Returns current user's profile (excluding password)
  * Demonstrates JWT authentication working

This completes the JWT authentication implementation.
Users now receive a token on login that can be used to
access protected routes.
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.

3 participants