---
title: Twilio Verify Collector Decision node
description: Collects a one-time passcode from the user and validates it against the Twilio Verify service.
component: auth-node-ref
version: latest
page_id: auth-node-ref:cloud:twilio-verify-collector-decision
canonical_url: https://docs.pingidentity.com/auth-node-ref/latest/cloud/twilio-verify-collector-decision.html
keywords: ["Nodes &amp; Trees", "Journeys", "Authentication", "Twilio"]
page_aliases: ["auth-node-twilio-verify-collector-decision.adoc"]
section_ids:
  twilio-examples: Twilio examples
  prompt_user_for_phone_number: Prompt user for phone number
  find_phone_number_in_user_profile: Find phone number in user profile
  verify_the_phone_number_is_a_mobile_carrier: Verify the phone number is a mobile carrier
  outcomes: Outcomes
  configuration: Configuration
---

# Twilio Verify Collector Decision node

Collects a one-time passcode from the user and validates it against the [Twilio Verify](https://www.twilio.com/verify) service.

Place this node after the [Twilio Verify Sender node](twilio-verify-sender.html) in the authentication flow.

## Twilio examples

### Prompt user for phone number

The following example validates the user's username and password, asks the user for their phone number, and sends a one-time passcode over SMS to that phone number. In this example, the [Twilio Verify Sender node](twilio-verify-sender.html) has the Request Identifier enabled. In production, alter this flow to pull the user's `userIdentifierphoneNumber` from their profile:

![Prompt user for phone number](_images/twilio-verify-1.png)

### Find phone number in user profile

The following example validates the user's username and password, identifies the user, finds the user's phone number in their profile, and sends a one-time passcode over SMS to that phone number.

![Find phone number in user profile](_images/twilio-verify-2.png)

### Verify the phone number is a mobile carrier

The following example validates the user's username and password, identifies the user, finds the user's phone number in their profile, verifies the phone number is a mobile carrier, and sends a one-time passcode over SMS to that phone number.

![Verify the phone number is a mobile carrier](_images/twilio-verify-3.png)

## Outcomes

* `True` OTP is approved successfully.

* `False` OTP isn't approved.

* `Error` Exception occurred, and the error message is stored in shared store.

## Configuration

| Property                | Usage                                                                                              |
| ----------------------- | -------------------------------------------------------------------------------------------------- |
| Hide Code Text          | If enabled, hides the code text from the end user similar to a password collector.Default: enabled |
| Identifier Shared State | The shared state variable to search for the user identifier.                                       |
