## Overview Implement the user registration endpoint inside `backend/contrib/`. This is the first step in the auth flow. ## Location All work must be inside `backend/contrib/src/auth/`. ## Acceptance Criteria - [ ] `POST /auth/register` endpoint implemented - [ ] `RegisterDto` with fields: `firstName`, `lastName`, `email` (`@IsEmail`), `password` (min 8 chars) - [ ] Password hashed with bcrypt (10 rounds) before storing - [ ] Returns `{ accessToken, refreshToken, user }` on success - [ ] Throws `ConflictException` (409) if email already exists - [ ] Refresh token hashed and stored in the database
Overview
Implement the user registration endpoint inside
backend/contrib/. This is the first step in the auth flow.Location
All work must be inside
backend/contrib/src/auth/.Acceptance Criteria
POST /auth/registerendpoint implementedRegisterDtowith fields:firstName,lastName,email(@IsEmail),password(min 8 chars){ accessToken, refreshToken, user }on successConflictException(409) if email already exists