Objective
Implement a complete authentication flow connecting the existing frontend screens with the backend authentication system, adding necessary features for user profile management.
Current Status
- Backend: Basic authentication system implemented with email registration, SMS/email verification code, and JWT tokens.
- Frontend: Login, Registration, and Forgot Password screens exist but need to be connected to the backend API.
Frontend Development Tasks -> #9
Backend Development Tasks -> #8
Technical Details
- Use the existing
AuthenticationStore to manage auth state
- Create API services for:
- Registration: POST to
/users/
- Login: POST to
/auth/login/
- Verification: POST to
/auth/verify-code/
- Google Auth: POST to
/auth/google/ (to be created)
- Profile Photo: POST to
/users/profile-photo/ (to be created)
- Address: POST/GET/PUT/DELETE to
/address/ (to be created)
- Use Cloudinary for photo storage, following the pattern from the existing Photo model
- Implement Google Sign-In using the Google Identity Services SDK
- Use device location services to extract user location
- Store auth token securely and include in authenticated requests
Acceptance Criteria
Objective
Implement a complete authentication flow connecting the existing frontend screens with the backend authentication system, adding necessary features for user profile management.
Current Status
Frontend Development Tasks -> #9
Backend Development Tasks -> #8
Technical Details
AuthenticationStoreto manage auth state/users//auth/login//auth/verify-code//auth/google/(to be created)/users/profile-photo/(to be created)/address/(to be created)Acceptance Criteria