git clone <your-repo-url>
cd <your-repo-folder>cd client
yarncd ../server
npm installcd ../client
yarn startcd ../server
npm run startA user consists of the following properties:
- id (UUID)
- username (string, required)
- password (hashed, required)
POST /auth/register
{
"username": "exampleUser",
"password": "securePassword"
}Response:
{
"id": "generated-uuid",
"username": "exampleUser"
}POST /auth/login
{
"username": "exampleUser",
"password": "securePassword"
}Response:
{
"token": "jwt-token"
}GET /auth/me
- Requires Authorization: Bearer header.
Response:
{
"id": "user-uuid",
"username": "exampleUser"
}Now you're ready to build and test your authentication API! 🚀