# Authyo OTP for Bit Form

> Add OTP verification to Bit Form forms with no extra fields. A Send OTP button appears under the native Email and Phone Number fields, and visitors verify by Email, SMS, WhatsApp or Voice Call.

Source: https://authyo.io/authyo-otp-for-bit-form/

> Note: Voice Call OTP is currently available only in India.

## At a glance

- **What it does:** Adds one-time-password (OTP) verification to the native Email and Phone Number fields of Bit Form forms. No extra field or shortcode is needed.
- **OTP channels:** Email, SMS, WhatsApp and Voice Call (Voice Call works only on Indian phone numbers).
- **How it works:** Once your Authyo keys are saved, every form with a matching field is protected for the channels you enable. You switch OTP **off** for individual forms in the **Forms** tab.
- **You need:** Bit Form, WordPress 6.5+, PHP 7.4+, and an Authyo account with a Client ID and Client Secret.
- **Settings location:** WordPress admin, under **Settings → Authyo OTP for Bit Form**.
- **Before you connect:** The plugin does nothing until you save your credentials. Your forms keep submitting as before.
- **Safety net:** If your Authyo wallet balance runs out, the field is marked verified so visitors can still submit, and the site admin is emailed (at most once an hour).
- **Get the plugin:** [WordPress.org: Authyo OTP for Bit Form](https://wordpress.org/plugins/authyo-otp-for-bit-form/)

## Overview

**Authyo OTP for Bit Form** adds a one-time-password check to your Bit Form forms. When a visitor types an email address or phone number into a form field, an OTP panel with a send button appears under it. The visitor enters the code they receive to verify the value before submitting the form.

You do not add any special field. Build your form as usual with the native **Email** and **Phone Number** fields. Once your Authyo keys are saved, every matching form is protected. If a form does not need OTP, switch it off in the **Forms** tab.

_This plugin is an add-on for Bit Form, developed and maintained by Konceptwise Digital Media Pvt. Ltd._

- **No extra fields:** The plugin enhances the Email and Phone Number fields your form already has. Nothing to drag in and no shortcodes.
- **Automatic, with per-form control:** Every matching form uses OTP by default. Switch it off for any form in the Forms tab, for example while testing.
- **Four OTP channels:** Email, SMS, WhatsApp and Voice Call. Voice Call currently works only on Indian phone numbers.
- **Visitor channel choice:** Let visitors pick SMS, WhatsApp or Voice Call on the form, or offer another method if the code does not arrive.
- **Guided tour and checklist:** A step-by-step tour and a setup checklist show what is done and what is left.
- **Country selector:** A searchable country selector on phone fields. Show all countries, a selected group or a single country.
- **Server-side check:** Verification is enforced on the server, so turning off JavaScript does not bypass it.
- **Fail-safe protection:** If your balance runs out, forms keep working and the admin is emailed, so you do not lose leads.

## Requirements

- WordPress **6.5** or later and PHP **7.4** or later.
- **Bit Form** installed and activated. The Authyo plugin cannot be activated without it.
- An **Authyo account** with an application. You will need its **Client ID** and **Client Secret**.
- Balance in your Authyo wallet to send OTPs.

## Installation

Install Bit Form first, then the Authyo add-on.

### Step 1: Install and activate Bit Form
Go to **Plugins → Add New**, search for **Bit Form**, then click **Install Now** and **Activate**. Skip this step if it is already active.

### Step 2: Install Authyo OTP for Bit Form
Go to **Plugins → Add New**, search for **Authyo OTP for Bit Form**, then click **Install Now** and **Activate**. You can also upload the plugin ZIP using **Plugins → Add New → Upload Plugin**.

### Step 3: Open the plugin settings
Go to **Settings → Authyo OTP for Bit Form**, or click **Settings** under the plugin name on the Plugins screen. The page has four tabs: **General**, **Verification Methods**, **Forms** and **How to Use**. On your first visit, click **Start tour** for a guided setup. You can restart it later with **Take the tour**.

## Setup

Connect the plugin to your Authyo account and choose how OTPs are sent. A setup checklist on the General tab shows what is done and what is left.

### Step 1: Create your Authyo account
On the **General** tab, click **Create Your Free Authyo Account**. It opens the Authyo sign-up page. You can also go to [app.authyo.io](https://app.authyo.io/account/welcome) yourself.

### Step 2: Copy your credentials
Open [your applications](https://app.authyo.io/application/userapplication) in the Authyo dashboard and copy the **Client ID** and **Client Secret**. Create an application first if you do not have one.

### Step 3: Paste them into the General tab
Under **API Credentials**, enter the **Client ID** and **Client Secret**, then click **Save Changes**. After saving, each field shows **Saved**. Leave a field blank to keep the saved value.

_Until you save your credentials, the plugin is completely dormant. It adds nothing to your pages, calls no external service, and every form submits as before._

### Step 4: Choose your channels
Open the **Verification Methods** tab. Under **Enable OTP Channels**, switch on **Email**, **SMS**, **WhatsApp** and **Voice Call** as needed. Email is on by default and the others are off. Voice Call currently works only on Indian phone numbers.

### Step 5: Set the primary phone method
If you use phone verification, set **Primary Method** under **Phone OTP Settings** to one of the channels you switched on. It is set to **SMS** by default.

_**Important:** if the primary method is a channel that is switched off, phone OTPs may not be sent. For example, if you enable only WhatsApp, set the primary method to **WhatsApp**._

### Step 6: Adjust the OTP options (optional)
Under **OTP Defaults**, set the code length, expiry, resend cooldown and resend limit. Under **Country Dropdown Configuration**, choose which countries to show. Click **Save Changes** when you finish.

## How to use

There is no extra step in the form builder. Once your keys are saved and a channel is on, OTP appears on its own.

### Step 1: Build your form as usual
In Bit Form, add a native **Email** and/or **Phone Number** field to your form, then save it. If you like, rename the field’s label to something like “Authyo Verified Email” so it reads as a verification field in the builder.

### Step 2: View the form on your site
Open the page that holds the form. When a visitor types an email address or phone number, an OTP panel appears under the field. Phone fields show the plugin’s searchable country selector.

### Step 3: The visitor verifies
The visitor clicks the send button, receives a code and types it in. The code is checked as soon as all digits are entered, or when they click **Verify OTP**. The form then shows **Email verified** or **Phone verified**, with a link to change the value.

### Step 4: The visitor submits the form
A filled Email or Phone Number field must be verified before the form is accepted, unless you allowed skipping for that channel. An optional field left empty does not need verification. On multi-step forms, the visitor also verifies before moving past the step.

### Step 5: Switch OTP off for a form (optional)
Open the **Forms** tab. Every Bit Form form is listed with an on/off switch, and a change is saved as soon as you click it. This does not affect your other forms or your channel settings.

_Using a page cache? Pages with a Bit Form form are marked as not cacheable while OTP is active. If you turn OTP on for a form, or enable a channel, after a page was already cached, clear your cache once._

## Settings reference

Every setting in the plugin, grouped by the tab where you find it under **Settings → Authyo OTP for Bit Form**.

### General: API credentials

- **Client ID**: The Client ID of your Authyo application.
- **Client Secret**: The Client Secret of your Authyo application. After saving it shows **Saved**. Leave it blank to keep the saved value. Credentials are stored encrypted when the PHP OpenSSL extension is available, which is the case on almost every host.
- **Remove saved keys**: Click it, then confirm with **Yes, remove keys**. Your Client ID and Client Secret are deleted and the downloaded country list is cleared. OTP switches off on all forms until you add new keys. Your other settings are kept.

### Verification Methods: channels

- **Enable OTP Channels** (Default: Email on, others off): Switch on **Email**, **SMS**, **WhatsApp** and **Voice Call**. At least one channel stays on: if you save with all of them off, Email is switched on. Voice Call currently works only on Indian phone numbers.

### Verification Methods: OTP defaults

- **OTP Length** (Default: 6): Number of digits in the code. Allowed range: 4 to 8.
- **Expiry (min)** (Default: 5): How long a code stays valid. Allowed range: 1 to 10.
- **Resend Cooldown (sec)** (Default: 30): How long visitors must wait before they can resend the code. Allowed range: 10 to 120.
- **Max Resends** (Default: 3): Limits how often the **Resend OTP** button is offered. Allowed range: 1 to 5.

### Verification Methods: phone OTP

- **Primary Method** (Default: SMS): The method used first for phone numbers: SMS, WhatsApp or Voice Call. Choose a channel that is switched on.
- **Fallback Timer (sec)** (Default: 30): How long to wait before offering your other enabled phone methods, such as **Try via WhatsApp**. Used when visitors do not choose the method themselves. Allowed range: 15 to 120.
- **Allow visitor to choose method immediately** (Default: Off): When on, and more than one phone channel is enabled, visitors pick SMS, WhatsApp or Voice Call right after entering their number.

### Verification Methods: skip verification

Use with caution. When on, a **Skip Verification** button is shown on that channel’s OTP panel and visitors can submit without verifying.

- **Allow skip for Email verification** (Default: Off): Let visitors skip email verification.
- **Allow skip for Phone verification** (Default: Off): Let visitors skip phone verification.

### Verification Methods: country dropdown

- **Country display mode** (Default: All countries): **All countries**, **Selected countries only** or **Single country**. In single country mode the visitor cannot change the country.
- **Selected countries**: Search the list and tick the countries to show.
- **Single country**: The one country to use in single country mode.
- **Default country** (Default: None): The country preselected when the page loads. Visitors can still change it. If none is set, the first country in the list is selected.
- **Refresh**: The list of countries is downloaded from Authyo when you save your credentials and refreshed automatically once a week. Click **Refresh** to update it now.

### Forms

- **OTP Verification (per form)** (Default: On): An on/off switch for every Bit Form form. Forms are on until you switch one off. The list shows 50 forms per page.

## Security and privacy

How the plugin keeps verification safe, and what it stores.

### Step 1: Server-side check
The plugin checks verification on the server when the form is submitted, so it is not bypassed by turning off JavaScript. The value submitted must match the one that was verified.

### Step 2: One verification, one submission
A verification is remembered for up to 30 minutes and is used up by a successful check at submission. To submit again, the visitor verifies again.

### Step 3: Rate limits
Requests to send and check codes are limited. For example, one visitor can request at most 5 codes for the same email address or phone number on a form within 10 minutes.

### Step 4: Short-lived data
Email addresses and phone numbers are sent to Authyo to deliver and check the code, and are not saved by this plugin. On your site it keeps salted, non-reversible hashes for at most 30 minutes. A cookie named `authyo_bf_vid`, holding a random value, is set when a logged-out visitor requests a code. Form submissions are stored by Bit Form as before.

### Step 5: Privacy policy text
The plugin adds suggested wording to **Settings → Privacy → Policy Guide** that you can use in your site’s privacy policy.

### Step 6: Behind a proxy or CDN
Rate limits use the IP address WordPress sees. If your host does not pass on the real visitor IP, many visitors can share one limit. A developer can return the real address with the `authyo_bf_remote_ip` filter.

## Troubleshooting

### Nothing happens on my forms
The plugin is dormant until you save your credentials. Open the **General** tab, enter your **Client ID** and **Client Secret** and save. Then check that the channel you need is switched on in **Verification Methods**.

### I see “Setup incomplete — add your Authyo API credentials”
Go to the **General** tab and add your Client ID and Client Secret.

### I see a warning that the stored credentials could not be decrypted
The WordPress security keys in `wp-config.php` changed after your credentials were saved. Forms keep working without OTP. Re-enter your **Client ID** and **Client Secret** and save.

### The OTP panel does not appear under the field
Check that the form has a native **Email** or **Phone Number** field, that OTP is on for that form in the **Forms** tab, and that the matching channel is enabled. The panel appears once the visitor types a complete email address or phone number. Bit Form Pro’s **Email OTP** field has its own verification and is not changed by this plugin. If the page was cached, clear your cache.

### Visitors see “OTP verification is not enabled on this site”
For phone fields, check that **Primary Method** is a channel that is switched on in **Verification Methods**. Then clear your page cache.

### The OTP does not arrive
Check your credentials, that the channel is switched on, that your Authyo wallet has balance, and that the email address or phone number and country are correct. Voice Call works only on Indian phone numbers.

### Visitors see “We could not complete the verification right now”
The plugin could not reach Authyo, or Authyo rejected the credentials. Re-enter your **Client ID** and **Client Secret**, and ask your host whether your server can connect to `app.authyo.io`.

### Visitors see “This OTP has expired. Please request a new one”
The code expired, or the visitor’s browser blocks cookies. Ask them to allow cookies and request a new code. You can also raise **Expiry (min)**, up to 10.

### Visitors are asked to verify before submitting
They need to request a code and enter it, then submit. Verification lasts up to 30 minutes, so a visitor who waits longer must verify again. To make verification optional, switch on the skip option for that channel.

### The form is submitted without OTP when my balance is empty
This is the safety net. If Authyo reports that your wallet balance is low or exhausted, the field is marked verified and the site admin is emailed at most once an hour. Click **Add credits** in the admin notice to top up.

### Visitors see “Too many requests” or “Too many attempts”
A rate limit was reached. The visitor should wait about 10 minutes. If many visitors are affected, your proxy or CDN may be hiding their real IP addresses. Ask your host to pass them on, or use the `authyo_bf_remote_ip` filter.

### I see an admin notice after updating Bit Form
If a Bit Form update changes how forms are submitted, the plugin shows a notice and OTP may no longer be enforced. Update both plugins, and [contact support](https://authyo.io/support/) if the notice stays.

### The country list is empty
It is downloaded when you save your credentials. Open **Verification Methods → Country Dropdown Configuration** and click **Refresh**.

### I want to test a form without sending real OTPs
Switch the form off in the **Forms** tab while you test, then switch it on again to go live.

## Frequently asked questions

### Do I need an Authyo account?
Yes. You need a free Authyo account and a Client ID and Client Secret to send OTPs.

### Do I need to add a special field to my form?
No. The plugin works with the standard Email and Phone Number fields in Bit Form. Build your form as usual.

### When does OTP verification start?
Only after you save your Authyo credentials. Until then your forms submit as before. The same applies if the saved credentials can no longer be read.

### Can I turn OTP off for one form?
Yes. The **Forms** tab lists every form with an on/off switch. Forms are on by default.

### What happens if my Authyo balance runs out?
When Authyo reports an exhausted balance, the field is marked verified so genuine visitors can still submit, and the site admin gets an email at most once an hour. If Authyo cannot be reached at all, the visitor sees an error and can retry. The form is not submitted unverified.

### Can visitors choose how they receive the code?
Yes. Switch on **Allow visitor to choose method immediately** and enable more than one phone channel.

### Does it support international phone numbers?
Yes. Phone fields get a country selector using the list of countries Authyo supports. You can show all countries, a selected group or a single country.

### Does it work with a caching plugin?
Yes. Pages with a Bit Form form are marked as not cacheable while OTP is active. If you turn OTP on after a page was cached, clear your cache once.

### Does the plugin store my visitors’ personal data?
It does not save email addresses or phone numbers. It keeps short-lived (30 minutes at most), salted, non-reversible hashes. Submissions are stored by Bit Form as before.

### Can I remove my saved keys?
Yes. On the **General** tab, under **API Credentials**, click **Remove saved keys** and confirm.

## Support

If this guide does not answer your question, submit the support form: https://authyo.io/support/
