-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Description:
This issue tracks the integration of the backend login system with the frontend login form. The backend provides JWT-based authentication using HttpOnly cookies, and the frontend form needs to connect to the /users/login endpoint.
β Checklist
π Backend
- Ensure
/users/loginroute is working with proper validations - JWT is generated and set in HttpOnly cookie on successful login
- Proper error responses for invalid credentials
- CORS settings allow frontend domain
- CSRF protection (if needed)
π» Frontend
- Form inputs are bound to email and password
- Submit button triggers async login request via Axios
- Axios includes
withCredentials: true - On success, redirect to dashboard
- On error, display user-friendly message
βοΈ Integration
- Test login with correct credentials
- Test login with wrong credentials
- Verify JWT is stored in cookie (check browser dev tools)
- Verify secure routes check login status via cookie
- Ensure logout functionality clears cookie properly
Related PRs:
Link PRs here once available
Labels:
feature backend frontend login integration
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels