auth

Sync User

Sync the authenticated Supabase user to the local database.

Extracts sub and email from the JWT, then calls AuthService.get_or_create_user. Optional profile fields (first_name, last_name, company) can be supplied in the request body.

post/api/v1/auth/sync

Request body

first_namestring nullable
last_namestring nullable
companystring nullable

Response

Successful Response

idstring uuid required
emailstring required
first_namestring required
last_namestring required
phonestring nullable
companystring nullable
statusstring required
created_atstring date-time required

Changes