flow-pie / flow-pie/chamaa.api

Implement Member Login Endpoint

Open
#17 1 comment 0 reactions 0 assignees View on GitHub
good first issue
Dominant language
HTML
Stars
3
Forks
4
PR merge metrics
No merged PRs in 30d

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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.