Skip to content

Conversation

@kshitijsharma123
Copy link

Role: Backend Intern
Contributor: Kshitij Sharma

This PR includes the implementation of a core user authentication system for a proprietary trading evaluation platform. The backend has been developed using Node.js, Express.js, and MongoDB, with JWT-based authentication for secure access.


🚀 Features Implemented:

  • User Registration

    • Allows users to register with name, email, and password
  • User Login

    • Issues JWT token and sets it in a secure, HTTP-only cookie
    • Enables secure session-based authentication
  • Protected Routes

    • /api/user/profile is accessible only by logged-in users
    • Middleware checks and verifies JWT tokens
  • Password Reset Flow

    • /api/auth/reset-password issues a simple token (dev-mode)
    • /api/auth/new-password sets a new password using token + email
    • After successful password update, user is automatically logged out

api_test.mp4

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