Project

General

Profile

Actions

Task #558

open

Implement Phone Number Login → OTP Verification → PIN Setup Flow (Frontend Integration)

Added by Malik Mehmood 4 days ago. Updated 4 days ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
Start date:
12/15/2025
Due date:
% Done:

0%

Estimated time:
8:00 h

Description

Description:

Integrate the new authentication flow using the backend APIs provided.
User should enter their phone number, receive & enter OTP, configure a secure PIN, confirm it, and then be redirected to the home page after successful authentication.

This task covers frontend integration only — backend endpoints are ready.

User Flow:

  1. Phone Number Screen

User enters phone number

Clicks Send OTP

On success → redirect to OTP Screen

  1. OTP Screen

Show OTP input (4 digits)

Show Resend OTP button with 60 sec cooldown

If OTP valid → redirect to Set PIN Screen

  1. Set PIN Screen

User enters PIN (4 digits)

On success → redirect to Confirm PIN Screen

  1. Confirm PIN Screen

User re-enters the same PIN

On success → redirect to Home Page

Acceptance Criteria:
Phone Number Screen

Validate number format

Successful OTP request triggers OTP screen navigation

Error handling for invalid number or server errors

OTP Screen

OTP 4-digit input implemented

Resend OTP disabled for 60 seconds

Countdown displayed

Resend OTP triggers backend call

Successful OTP verification navigates to Set PIN screen

Incorrect OTP displays proper error

PIN Setup Screen

PIN must be digits only

PIN must meet required length

Successful set PIN → navigates to confirm PIN

Confirm PIN Screen

Must match the initially entered PIN

On success,

Navigate to home page

General

All errors handled gracefully

API failures show user-friendly messages

Loading states for each API call

Actions #1

Updated by Malik Mehmood 4 days ago

  • Target version set to Chat Module Feature
Actions

Also available in: Atom PDF