Skip to Content
HomeLink Hub

Sign up and verification

Creating an agent, landlord or lawyer account and confirming the email address.

Where it lives

RouteView fileAccess
/auth/signupsrc/views/auth/signup.tsxpublic
/auth/check-emailsrc/views/auth/check-email.tsxpublic
/auth/verify-emailsrc/views/auth/verify-email.tsxpublic

All three render inside src/layouts/AuthLayout.tsx: a white card over a dimmed photo, with the HomeLink logo top left. The logo and the card's close (X) button link back to the consumer app. The API calls are thunks in src/services/auth/auth-thunk.ts.

Before you start

  • No account is needed. The pages are also reachable while signed in; nothing redirects a signed-in user away.
  • Tenants and developers cannot sign up here. Step 2 links them to the consumer app instead ("Looking to rent or buy a home? Sign up on the HomeLink Hub app").

Flow

Sign up

The form has four steps on one route. The heading is "Create your account" with the line "Professional registration for verified real estate partners." A progress row shows "Step N of 4", the step title and four bars. From step 2 onwards the chosen email is shown at the top with a Change link that jumps back to step 1.

  1. Step 1, "Email". One field, Email Address. Press Continue.

    RuleMessage
    Empty"Email address is required"
    Must match something@something.something with no spaces"Enter a valid email address"
  2. Step 2, "Account type". The question "How will you use HomeLink Hub?" with three radio cards:

    CardDescription shownRole sent
    Agent"List and manage properties on behalf of clients"AGENT
    Landlord"Rent out or sell properties you own"LANDLORD
    Lawyer"Review documents and handle legal checks on deals"LAWYER

    Continuing without a choice shows "Choose how you'll use HomeLink Hub". Choosing Agent reveals a panel, "New to HomeLink? Here's what happens next", listing the first three steps of the agent guide and a See the full agent guide link. The link opens the agent intro dialog (see Onboarding and KYC) with the button Got it, continue signing up.

  3. Step 3, "Your details".

    FieldRuleMessage
    First NameRequired, 2 to 50 characters after trimming"First name is required", "First name must be at least 2 characters", "First name must be 50 characters or fewer"
    Last NameSame as first name"Last name is required", and so on
    Phone NumberRequired. Only digits, spaces, brackets, hyphens and one leading +. Between 7 and 15 digits."Phone number is required", "Enter a valid phone number"
  4. Step 4, "Secure your account".

    FieldRuleMessage
    PasswordRequired, 8 to 128 characters"Password is required", "Password must be at least 8 characters", "Password must be 128 characters or fewer"
    Confirm PasswordRequired, must equal Password"Please confirm your password", "Passwords do not match"

    A strength label sits beside the Password field: "TOO SHORT" under 8 characters, "MODERATE" for 8 to 11, "STRONG PASSWORD" for 12 or more. It is based on length only. Each field has a show/hide eye button.

  5. Press Create Account. Every field from every step is validated again; if one fails the form jumps back to the first step with an error. Otherwise the button shows "Creating account…" and the app sends POST /api/v1/auth/signup with firstName, lastName, email, phone, password and role (names, email and phone are trimmed).

  6. On success a toast says "Account created! Please check your email to verify." and the app navigates to /auth/check-email, passing the email in router state. Nothing is written to storage and the user is not signed in.

  7. On failure a toast shows the API's message, or "Signup failed. Please try again." The user stays on step 4.

On steps 2 to 4 a Back button returns to the previous step. "Already have an account? Sign in" goes to /auth/signin.

Validation is per step

Errors appear only after pressing Continue. Once a field is flagged it is re-checked on every keystroke, and editing the password also re-checks the confirmation.

Check your email

  1. The screen shows "Verify your Email" and "We sent a verification link to your email address. Click the link to activate your account. Don't forget to check your spam folder."
  2. Open Email App opens a blank mailto: link, which launches the device's default mail client.
  3. Resend Email sends POST /api/v1/auth/resend-verification with the email from router state.
    • Success toast: "Verification email resent. Please check your inbox."
    • Failure toast: the API message, or "Failed to resend. Please try again."
  4. Back to Sign in goes to /auth/signin.

Verify email

The link in the verification email opens /auth/verify-email?token=....

  1. The page shows "Verifying your email…" and immediately sends GET /api/v1/auth/verify-email?token=.... The call runs once per page load.
  2. Success: "Email Verified!" with "Email verified successfully. You can now sign in." and "Redirecting to sign in in 5 seconds…". After 5 seconds the app goes to /auth/signin. Sign In Now goes there immediately.
  3. Failure: "Verification Failed" with the API message, or "Invalid or expired verification link." Buttons: Go to Sign In and Back to Sign Up.

Verifying does not sign the user in. They always land on the sign-in page.

States and edge cases

  • Opening /auth/check-email directly. The email only travels in router state. Without it, Resend Email shows the toast "Email address not found. Please sign up again." and sends nothing.
  • No token on the verify link. The page goes straight to "Verification Failed" with "Verification token is missing. Please use the link from your email." No request is sent.
  • Email already registered, weak password, and similar. These are decided by the API. The client just shows the returned message as a toast.
  • Loading. The submit button is disabled while the sign-up request is in flight. Resend Email shows a spinner and is disabled while resending.
  • Google sign-up. There is no Google button on the sign-up form. Google appears only on the sign-in page.

What happens next

  • The API sends the verification email (the client only shows the confirmation copy).
  • After verifying and signing in, an agent whose account is not yet KYC verified is taken to onboarding. A landlord goes to the dashboard home. A lawyer goes to /legal. See Sign in and password reset.

Signing in before verifying

The client has no check for an unverified email at sign-in. Whether an unverified account can sign in is decided by the API, and any refusal appears as the sign-in error toast.

On this page