Creates a new user account and returns authentication cookies (accessToken and refreshToken) along with the user details.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/zulfikarrosadi/juadah-backend/llms.txt
Use this file to discover all available pages before exploring further.
Request
User’s email address. Must be a valid email format.
User’s full name. Must have minimum 1 character.
User’s password. Must have minimum 1 character.
Password confirmation. Must match the password field exactly.
Response
Response status. Returns “success” on successful registration.
Response Headers
The response includes two Set-Cookie headers:- Set-Cookie: accessToken - HTTP-only cookie for API authentication. Valid across all paths. Includes Secure and SameSite=None flags.
- Set-Cookie: refreshToken - HTTP-only cookie for token renewal. Only valid for
/api/refreshpath. Includes Secure and SameSite=None flags.
Example Request
Example Response
Success (201 Created)
Validation Error (400 Bad Request)
email is required- Email field is missingyour email is in invalid format- Invalid email formatfullname should have minimum 1 characters- Fullname is emptypassword is required- Password field is missingpassword confirmation is required- Password confirmation field is missingpassword and password confirmation is not match- Passwords don’t match