User Registration
Users can register using the register endpoint.
Endpoint
POST /auth/register
Request Body
{
"email": "user@example.com",
"password": "password123"
}
Example Request
fetch("/auth/register", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({
email: "user@example.com",
password: "password123",
}),
});
Response
{
"message": "User registered successfully"
}
Email verification may be required before login.