Skip to content

Registration and Login #1

Description

@adamsnows

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

  • User can register with email and password
  • User can log in with Google
  • After registration, user must confirm code sent by SMS or email
  • User can upload and manage profile photo
  • User can add, edit, and validate their residence address
  • User location can be automatically extracted from device
  • User profile shows name, photo, and location
  • Authentication persists between app restarts
  • Proper error handling and user feedback

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions