Ecommerce Delivery provides three sequential auth screens for new and returning users: a sign-in form atDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/fredy-rizo/ecommerce-delivery-frontend/llms.txt
Use this file to discover all available pages before exploring further.
/login, a registration form at /registro, and a security-code verification step at /security-code. All three are standalone pages (no main layout wrapper) that store a JWT and user object in localStorage upon success and redirect the user into the application.
Sign In
The sign-in screen lives at route/login and is rendered by pages/login/SignIn.vue, which hosts the formSignIn.vue component.
- Route:
/login· route namelogin - Component:
pages/login/SignIn→components/login/formSignIn.vue - Required fields:
email(non-empty),password(min. 8 characters)
formSignIn posts credentials to POST /api/user/login. A successful response saves the session to localStorage, registers the device’s FCM token for push notifications, and redirects to /posts (the main store).
POST /api/notification/register-token with the user’s Firebase Cloud Messaging token to enable push notifications for order updates and promotions.
Sign Up
New users register at route/registro, rendered by pages/login/signUp.vue → components/login/formSignUp.vue.
- Route:
/registro· route nameregistro - Component:
pages/login/signUp→components/login/formSignUp.vue - Required fields:
name,email,password(min. 8 characters),accept: true - Optional field:
meseller— a referral / promotor code
accept flag (Terms and Conditions toggle) must be true; if it is false the form fires a Quasar notify warning and aborts the request before any network call is made.
On success, the token and user object are saved to localStorage and the user is redirected to /security-code for email verification.
The
meseller field is optional. Leave it empty (or omit it) if the user is registering without a promotor referral code.Security code verification
After registration, the user must confirm ownership of their email address before getting full access to the platform.- Route:
/security-code· route namesecurity-code - Component:
pages/security/secureCode→components/Security/formSecurityCode.vue
localStorage, and the app navigates to the main store (inicio).
POST /api/user/resend-code with the user’s email and displays the result inline via a Quasar notification. The button shows a loading spinner (resending ref) while the request is in flight.
If the account is already verified, the API returns
alreadyVerified: true in the error response and the UI shows an orange informational notification instead of a red error. The user can proceed directly to /login in that case.