auth
Register User
Register the authenticated user in our system.
This endpoint should be called by the frontend after Supabase authentication to create the user record in our Users service. It uses the Supabase user ID (from JWT 'sub' claim) as the primary key.
Safe to call multiple times. If user already exists, returns 200 OK. The response includes the frontend's next routing step:
- next_step="email" for phone-only users who must collect a primary email
- next_step="app" for complete users
Requires authentication via Bearer token (Supabase JWT).
post/auth/register
Request body
Response
Successful Response