💡[Feature]: Day 2: ChatBot: Integrate Authentication Endpoints
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
Thank you for creating this issue! We'll look into it as soon as possible. Your contributions are highly appreciated! 😊
@SB2318 assign to me , should i start work on that
@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 Yes , I understand
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!