You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Authentication forms that connect to the POST /auth/login and POST /auth/register endpoints. The JWT token received is saved to localStorage for use in subsequent requests.
Acceptance criteria
Login screen with email and password fields
Registration screen with name, email, password, and role selection (Buyer / Seller)
JWT token saved to localStorage after a successful login
Redirect to index.html after login
Error message displayed for invalid credentials
Logout button clears the token and redirects to the login screen
Authentication forms that connect to the
POST /auth/loginandPOST /auth/registerendpoints. The JWT token received is saved tolocalStoragefor use in subsequent requests.Acceptance criteria
localStorageafter a successful loginindex.htmlafter login