beqa200 / colab-team4

0 stars 0 forks source link

Implement Login Page #1

Open gionare opened 1 month ago

gionare commented 1 month ago

Task: Implement the Login Page

Objective: Create a responsive login page where users can log in using their email and password.

Requirements:

Design Considerations:

Dependencies:

Checklist:

gionare commented 1 month ago

Data to Send (Login and Registration)

Login: { "email": "user@example.com", "password": "yourPassword" }

Registration: { "fullName": "John Doe", "email": "user@example.com", "password": "yourPassword" }

Data to Receive { "token": "jwtToken", "user": { "id": "userId", "fullName": "John Doe", "email": "user@example.com" } }

gionare commented 1 month ago

interface User { id: string; fullName: string; email: string; }

interface AuthResponse { token: string; user: User; }

interface LoginRequest { email: string; password: string; }

interface RegisterRequest { fullName: string; email: string; password: string; }