Open gionare opened 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" } }
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; }
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: