Authenticates a user with email and password, returning 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 password. Must have minimum 1 character.
Response
Response status. Returns “success” on successful login.
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 (200 OK)
Validation Error (400 Bad Request)
email is required- Email field is missingyour email format is invalid- Invalid email formatpassword is required- Password field is missing