All authentication uses JWT tokens. Secure endpoints require Authorization: Bearer <token> in the headers.
POST /api/auth/login
{
"email": "admin@shopvibe.com",
"password": "Admin@123456"
}
Response: Returns access token, user profile, and sets an HTTP-only refresh token cookie.
POST /api/auth/register
{
"name": "John Doe",
"email": "john@example.com",
"password": "SecurePassword123"
}
GET /api/auth/me (Requires Token)