Project

General

Profile

Actions

Task #558

closed

Feature #533: Authentication Hum Rahi

EPIC #539: Epic: User Authentication - OTP Verification & Security

User Story #541: User Story HR-BE-01: OTP Validation API & Token Generation

Implement OTP Validation Logic

Added by zaid ali about 1 month ago.

Status:
Backend completed
Priority:
low
Assignee:
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:

Description

Developed the core logic to validate the submitted OTP against the stored OTP in Redis. The service retrieves the stored OTP using the normalized phone number and compares it with the OTP received in the request.

Key Responsibilities:

  • Fetch OTP from Redis using key format (otp:{phoneNumber}).
  • Compare stored OTP with the submitted OTP.
  • Handle mismatch and invalid cases.

No data to display

Actions

Also available in: Atom PDF