# authy-form-helpers **Repository Path**: mirrors_twilio/authy-form-helpers ## Basic Information - **Project Name**: authy-form-helpers - **Description**: Authy javascripts and css file to help create quick forms for the authy api - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-10-22 - **Last Updated**: 2025-11-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Authy Forms Helpers This javascripts and stylesheets help you build your Registration and Verification forms to use Authy quicker. They include: 1. An awesome countries dropdown that selects between country name and country code 2. Some javascripts validations on tokens and cellphones 3. A tooltip you can use to add a help message when you ask for the token ## CDN You can copy manually the javascripts and stylesheets into your project or you can simply use authy website to serve them: Compressed CSS: https://www.authy.com/form.authy.min.css" Compressed JS: https://www.authy.com/form.authy.min.js" Add this in your HTML \ or you can use CloudFlare CDN: Compressed CSS: //cdnjs.cloudflare.com/ajax/libs/authy-form-helpers/2.3/form.authy.min.css Compressed JS: //cdnjs.cloudflare.com/ajax/libs/authy-form-helpers/2.3/form.authy.min.js ## Registration form (user enabling two factor) In this form you need the `country code` and the user `cellphone` ##### Get the Countries Dropdown: Add `authy-countries` id to the Country input. To see a demo open sample/register.html and look at the Country input. ###### Display the country code as number Add `data-show-as="number"` to the Country input. ###### Set the default country code Add `data-value="+{country_code}"` to the Country input. ##### Cellphone validations: Add `authy-cellphone` id to the cellphone input. To see a demo open sample/register.html and look at the cellphone input. ## Two-factor verification form On this form the user enters his `token` which he gets from his cellphone #### Token validation To see a demo open sample/login.html and look at the cellphone input. Add `authy-token` id to the input. To see a demo open sample/login.html and look at the cellphone input. #### Authy input logo To see a demo open sample/login.html and look at the cellphone input. Add `authy-token` id to the input. To see a demo open sample/login.html and look at the cellphone input. #### Help tooltip First set the help message you want: var authyUI = Authy.UI.instance(); authyUI.setTooltip("Two-Factor", "Get this token from your cellphone"); Add `authy-help` id to the link. help To see a demo open sample/login.html and look at the cellphone input. ## Need help? Contact us via https://support.authy.com ## Copyright Copyright (c) 2013-2020 Authy Inc. See LICENSE.txt for further details.