Signup
**What:** Create an account, seed the 3 default collections (Favorites, Already Watched, Watchlist), and return a JWT plus the safe user.
**Auth:** None.
**Body (JSON):**
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
| name | string | yes | Display name. | `Movie Fan` |
| email | string | yes | Must match a basic email pattern; stored lowercased. | `moviefan@example.com` |
| username | string | yes | Unique; trimmed, case-sensitive. | `moviefan` |
| password | string | yes | Minimum 6 characters. | `secret123` |
| dateOfBirth | string (date) | yes | Any value parseable by `Date` (ISO recommended). | `1999-05-20` |
**Returns:** `data = { token, user }`. `user` never includes `passwordHash`.
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Request
This endpoint expects an object.
name
email
password
username
dateOfBirth
Response
Created
ok
data
Errors
400
Bad Request Error

