Appearance
Authentication
MTL Rent uses JWT-based authentication with httpOnly cookies.
Roles
| Role | Can Do |
|---|---|
| Tenant | Browse listings, save favorites, manage profile |
| Landlord | Everything a tenant can do + create/edit/delete listings |
Registration
Sign up at /signup with:
- Email address
- Password (min 6 characters)
- Name
- Role selection (Tenant or Landlord)
Login
Login at /login with email and password. A JWT token is stored in an httpOnly cookie (7-day expiry).
Logout
Clicking logout clears the auth cookie.