UltimateHealth icon indicating copy to clipboard operation
UltimateHealth copied to clipboard

💡[Feature]: Day 2: ChatBot: Integrate Authentication Endpoints

Open SB2318 opened this issue 1 month ago • 5 comments

Is there an existing issue for this?

  • [x] I have searched the existing issues

✅ 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

Feature Description

📌 Description

Today's goal is to integrate all authentication-related backend API endpoints into the frontend application.
The integration should ensure users can create an account, log in, and fetch their profile securely.

🔗 API Endpoints to Integrate

1. POST /auth/create-user

  • Triggered from Signup form
  • Validate inputs (email, password, name)
  • Show success or error toast
  • Redirect to Login page after successful signup

2. POST /auth/login

  • Triggered from Login form
  • Validate user credentials
  • Redirect user to Home page

3. GET /auth/profile

  • Called on Home page after login
  • Use stored token
  • Fetch user details

🎯 Acceptance Criteria

  • User can sign up
  • User can log in
  • User data loads on Home Page

Use Case

Feature

Benefits

Learning

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]

@SB2318 assign to me , should i start work on that

Shivin1016 avatar Nov 16 '25 06:11 Shivin1016

@SB2318 assign to me , should i start work on that

For this issue, you have to complete the below tasks:

#627 #632

You can start with any of them, and can take reference from other contributor's branch. And also you can reach out to me.

SB2318 avatar Nov 16 '25 07:11 SB2318

@SB2318 Yes , I understand

Shivin1016 avatar Nov 16 '25 10:11 Shivin1016

Hi! i have done the work for this!

Here is my PR: https://github.com/SB2318/IEEE-s-Mindful-Devs-Bootcamp/pull/9

Sorry for mixing it with previous PR, i did not know that it will got mixed, i hope it is not a problem! If it is, just let me know!

tristnaja avatar Nov 18 '25 09:11 tristnaja