Skip to content

[BE-11] Implement auth login endpoint (POST /auth/login) #576

@yusuftomilola

Description

@yusuftomilola

Overview

Implement the login endpoint that validates credentials and returns JWT tokens inside backend/contrib/.

Location

All work must be inside backend/contrib/src/auth/.

Acceptance Criteria

  • POST /auth/login endpoint implemented
  • LoginDto with email and password fields
  • Password verified using bcrypt.compare
  • Returns { accessToken, refreshToken, user } on success
  • Throws UnauthorizedException (401) on invalid credentials
  • Hashed refresh token stored in DB via UsersService

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions