flow-pie/chamaa.api

Implement Member Login Endpoint

Open

#17 opened on Nov 1, 2025

View on GitHub
 (1 comment) (0 reactions) (0 assignees)HTML (4 forks)auto 404
good first issue

Repository metrics

Stars
 (3 stars)
PR merge metrics
 (PR metrics pending)

Description

Create a POST /api/v1/auth/login endpoint for members to log in. Requirements:

Request body:

{ "email": "string", "password": "string" }

Validate credentials and return:

{ "token": "jwt", "member": { "id": 1, "full_name": "string", "email": "string" } }

Handle invalid credentials with 401 Unauthorized

Add login rate-limiting (optional)

Contributor guide