flow-pie/chamaa.api

Implement Member Login Endpoint

Open

#17 创建于 2025年11月1日

在 GitHub 查看
 (1 评论) (0 反应) (0 负责人)HTML (4 fork)auto 404
good first issue

仓库指标

Star
 (3 star)
PR 合并指标
 (PR 指标待抓取)

描述

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)

贡献者指南