Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • A Ahad Mobile
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Terraform modules
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • holatech
  • Ahad Mobile
  • Merge requests
  • !42

feat(signup): create the account right after the email OTP

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged Ngoc Duong requested to merge feat/signup-on-otp into develop Sep 04, 2026
  • Overview 0
  • Commits 3
  • Pipelines 1
  • Changes 13

The account used to be registered on the last screen of signup, so email, phone and password sat in a client store across three screens and were lost if the user dropped out. /auth/signup now runs as soon as the email code verifies, and the profile screens save through PUT /users/profile instead.

  • signup data is cleared once the account exists, so it cannot be registered twice
  • create-account and verify-account now work off the session and the profile
  • index redirects to create-account when name, birthday or address is missing, so an account cannot reach home with an unusable profile
  • sign-in clears the react-query cache: queries are keyed by endpoint, not by user, so a new account was being served the previous one's profile
  • drops the signup access-token path in verification, now that signup has a session

Co-Authored-By: Claude Opus 5 (1M context) noreply@anthropic.com

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: feat/signup-on-otp