---
title: OTP Collector Decision node
description: The OTP Collector Decision node requests and verifies one-time passcodes (OTP).
component: auth-node-ref
version: latest
page_id: auth-node-ref::otp-collector-decision
canonical_url: https://docs.pingidentity.com/auth-node-ref/latest/otp-collector-decision.html
keywords: ["Nodes &amp; Trees", "Journeys", "Authentication"]
page_aliases: ["auth-node-otp-collector-decision.adoc"]
superseded_by: https://docs.pingidentity.com/auth-node-ref/latest/otp-collector-decision.html
section_ids:
  example: Example
  availability: Availability
  inputs: Inputs
  dependencies: Dependencies
  configuration: Configuration
  outputs: Outputs
  callbacks: Callbacks
  outcomes: Outcomes
  errors: Errors
---

# OTP Collector Decision node

The OTP Collector Decision node requests and verifies one-time passcodes (OTP).

## Example

The following example demonstrates using an OTP in a multi-factor authentication journey:

![OTP journey](_images/otp-example-journey.png)

* The [Page node](page.html) containing the [Platform Username node](platform-username.html) and [Platform Password node](platform-password.html) prompts for credentials.

* The [Data Store Decision node](data-store-decision.html) validates the username-password credentials.

* The [HOTP Generator node](hotp-generator.html) generates an eight-digit OTP.

* The [Choice Collector node](choice-collector.html) prompts the user to choose whether they want to receive the OTP via email or SMS.

  * If the user chooses email, the [OTP Email Sender node](otp-email-sender.html) sends the OTP to the user's email address.

  * If the user chooses SMS, the [OTP SMS Sender node](otp-sms-sender.html) sends the OTP to the user's mobile number.

* The [OTP Collector Decision node](otp-collector-decision.html) prompts the user to enter the OTP they received and verifies it. If the OTP is correct, the user is authenticated.

## Availability

| Product                               | Available? |
| ------------------------------------- | ---------- |
| PingOne Advanced Identity Cloud       | Yes        |
| PingAM (self-managed)                 | Yes        |
| Ping Identity Platform (self-managed) | Yes        |

## Inputs

The node requires the `oneTimePassword` and `oneTimePasswordTimestamp` properties in the incoming node state.

Implement the [HOTP Generator node](hotp-generator.html) earlier in the journey.

## Dependencies

This node has no dependencies.

## Configuration

| Property                          | Usage                                                                  |
| --------------------------------- | ---------------------------------------------------------------------- |
| One Time Password Validity Length | The length of time, in minutes, that an OTP remains valid.Default: `5` |

## Outputs

This node doesn't change the shared state.

## Callbacks

This node sends a [PasswordCallback](https://docs.pingidentity.com/pingoneaic/am-authentication/callbacks-interactive.html#PasswordCallback), which prompts the user to enter the OTP they received.

## Outcomes

* `True`

  The OTP is valid.

* `False`

  The OTP isn't valid.

## Errors

This node doesn't log any error or warning messages of its own.
