Passing OTP Codes From Forms to a Auth0 Custom Email Provider
Apr 6, 2026
Overview
This article explains how to pass a One-Time Password (OTP) code generated in an Auth0 Form to the Custom Email Provider. It addresses the requirement to transfer data between the password generation widget and the email delivery service.
Applies To
- Auth0 Forms
- Custom Email Provider with Actions
- One-Time Password (OTP) generation
Solution
Form variables within flows are supported only in fields that display a + icon on the right side of the input.
To pass a code from the Generate one-time password widget to the Send email widget when the + icon is absent, follow these steps:
- Define a variable to hold the generated OTP code.
- Access the generated code within the target field using the
custom_varsparameter.