Register a new storefront customer
POST
/auth/register
Creates a storefront customer for the resolved tenant (account) and signs them in, returning a 7-day customer JWT plus a rotating refreshToken (see POST /auth/refresh) and expiresIn (access token lifetime, seconds).
Auth: Public (no authentication).
Request Body
application/json
JSON "email": "user@example.com", "password": "string", "firstName": "string", "lastName": "string", "phone": "string"
{
}
Responses
Customer created and signed in
application/json
JSON "ok": true, "data": { "token": "string", "refreshToken": "string", "expiresIn": 604800, "customer": { "customerId": "string", "email": "user@example.com", "firstName": "string", "lastName": "string", "phone": "string", "emailVerified": true, "createdAt": "2024-01-01T00:00:00Z" } }
{
}