Login with OTP

PENDING 8 hrs Medium 2024-04-25

Login User

  • As a user, I should be able to login.

Login URL

RESTAPI

Validation

  1. Validate entered mobile number with the database and return error.
  2. Validate entered phone number is in the length of 10 digit.
  3. Restict the input field to number.
  4. Sent OTP only if above all condition matches else return respective error.

Positive Test Cases for OTP

  1. Successful OTP generation and delivery via SMS.
  2. Accurate validation of a correctly entered OTP.
  3. Seamless integration with multi-factor authentication processes.
  4. Time-sensitive expiration of OTPs.
  5. Efficient handling of concurrent OTP requests.
  6. Reliable OTP delivery through email.
  7. Appropriate response to valid OTP input in various applications.
  8. Successful OTP validation with minimal user latency.
  9. Proper functioning of OTPs across different devices.
  10. Error-free OTP generation for diverse user accounts.
  11. Smooth integration with third-party OTP authenticator apps.
  12. Testing OTP resend option for the same transaction action.
  13. Testing system response to rapid consecutive OTP requests.

Negative Test Cases for OTP

  1. Invalid OTP entry resulting in rejection.
  2. Excessive attempts leading to temporary account lockout.
  3. OTP verification failure for expired codes.
  4. Unsuccessful OTP delivery due to network issues.
  5. Incorrect input handling with alphanumeric OTPs.
  6. Testing the system’s response to delayed OTP delivery.
  7. Security validation for tampered or manipulated OTPs.
  8. Testing the system’s response to receiving duplicate OTPs.
  9. Handling scenarios where OTPs are not delivered or received.

Response

{
  "data": {
    "id": "91eee3b0-9dec-4859-b607-c8868bd16bc7",
    "createdAt": "2024-03-31T03:49:12.524Z",
    "updatedAt": "2024-06-20T18:00:37.703Z",
    "name": "Jayasurya",
    "email": "surya@technocis.in",
    "phone": "9500659698",
    "alternatePhone": "",
    "whatsapp": "9500659698",
    "roles": [
      {
        "id": "800d3474-2e69-4259-96f6-3630721798d6",
        "createdAt": "2024-03-30T13:37:48.621Z",
        "updatedAt": "2024-03-30T13:37:48.621Z",
        "title": "Customer",
        "key": "CUSTOMER",
        "description": "Customer Role",
        "active": true,
        "default": true,
        "permissions": ["USER_CREATE"]
      },
      {
        "id": "03973864-c648-4aad-8bf4-35e8badafef0",
        "createdAt": "2024-03-30T13:37:48.618Z",
        "updatedAt": "2024-03-30T13:37:48.619Z",
        "title": "Super Admin",
        "key": "SUPER_ADMIN",
        "description": "Super Admin Role",
        "active": true,
        "default": false,
        "permissions": ["USER_CREATE"]
      },
      {
        "id": "184bf547-fc11-48b5-8084-a7fb80cc578c",
        "createdAt": "2024-03-30T13:37:48.620Z",
        "updatedAt": "2024-03-30T13:37:48.620Z",
        "title": "Admin",
        "key": "ADMIN",
        "description": "Admin Role",
        "active": true,
        "default": false,
        "permissions": ["USER_CREATE"]
      }
    ]
  },
  "message": "ok"
}

Payload

{ "phone": "9500659698" }