Skip to content

πŸ’‘[Feature]: Day 2: ChatBot: Integrate Authentication EndpointsΒ #635

@SB2318

Description

@SB2318

Is there an existing issue for this?

  • I have searched the existing issues

βœ… Tasks

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

  • 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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions