UltimateHealth icon indicating copy to clipboard operation
UltimateHealth copied to clipboard

πŸ’‘[Feature]: Day 2 ChatBot Backend: Add Authentication Endpoints (Create User, Login, Profile)

Open SB2318 opened this issue 1 month ago β€’ 3 comments

Is there an existing issue for this?

  • [x] I have searched the existing issues

Feature Description

[Feature] Add Authentication Endpoints (Create User, Login, Profile)

βœ… Tasks

  • [ ] Fork the submodule (https://github.com/SB2318/IEEE-s-Mindful-Devs-Bootcamp)
  • [ ] Create a new branch add your changes there
  • [ ] Create PR For the submodule

Description

Implement the core authentication flow for the backend.
This feature includes creating required controllers, services, validation, and route handlers.


Endpoints to Implement

1. POST /auth/create-user

  • Create a new user
  • Validate input (name, email, password)
  • Hash password before storing
  • Return success response with user details (excluding password)

2. POST /auth/login

  • Authenticate user using email + password
  • Validate credentials

3. GET /auth/profile?email={email}

  • Return current logged-in user’s profile

Acceptance Criteria

  • Proper HTTP status codes implemented
  • Secure password hashing (bcrypt recommended) (Optional)
  • Error handling & validation added
  • Basic tests screenshot for each endpoint

Use Case

Learning

Benefits

Build in public

Add ScreenShots

No response

Priority

High

Record

  • [x] I have read the Contributing Guidelines
  • [ ] I'm a GSSOC'24 contributor
  • [ ] I'm a IEEE IGDTUW contributor
  • [ ] I want to work on this issue

SB2318 avatar Nov 16 '25 05:11 SB2318

Thank you for creating this issue! We'll look into it as soon as possible. Your contributions are highly appreciated! 😊

github-actions[bot] avatar Nov 16 '25 05:11 github-actions[bot]

Hi! would love to work on this!

tristnaja avatar Nov 16 '25 14:11 tristnaja

Opened my PR, its right here: https://github.com/SB2318/IEEE-s-Mindful-Devs-Bootcamp/pull/6

Please review and leave comments if there are improvements or changes that i need to make! i would love to do it!

tristnaja avatar Nov 16 '25 14:11 tristnaja