Skip to content

[BE-10] Implement auth register endpoint (POST /auth/register) #575

@yusuftomilola

Description

@yusuftomilola

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions