Skip to content

Authentication

MTL Rent uses JWT-based authentication with httpOnly cookies.

Roles

RoleCan Do
TenantBrowse listings, save favorites, manage profile
LandlordEverything 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.