UltimateHealth
UltimateHealth copied to clipboard
π‘[Feature]: Day 2 ChatBot Backend: Add Authentication Endpoints (Create User, Login, Profile)
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
Thank you for creating this issue! We'll look into it as soon as possible. Your contributions are highly appreciated! π
Hi! would love to work on this!
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!