The TwilioAuth SDK has been deprecated. This means that while we will continue to provide maintenance support for existing customers and their usage, we discourage new customers and new usage, as we may shut it down entirely in the future. We strongly recommend using the Verify Push SDK instead, which currently supports the Push channel, and will be enhanced to support the TOTP channel in the future.
The Authy API supports push authentication, which is a secure authentication and authorization service which can be used for scenarios such as:
The image above shows an example of a push authentication approval request on a mobile device. You can see how the branding and details can be used to assist the user in making an informed decision about whether to approve or deny the request. A push notification is sent to the mobile or desktop device to prompt the user to open the request.
To successfully complete an approval request with the Authenticator SDK, the following flow must be implemented.
The SDK will need to talk to Authy securely, and therefore all devices must be authenticated. However, the Authy API Key is powerful, so you must not hard-code API keys inside the client apps. In contrast, we give you the control over the authentication method, using the one you're currently using in your backend.
If you need to have a quick start, refer to the tutorials section where you can start integrating the SDK against a sample backend that can be deployed.
Before the users start using the TwilioAuth SDK, their mobile device must be registered with the Authy service. Here is the flow for the mobile device registration using the TwilioAuth SDK:
The user must be added to your Authy application before you start the device registration process. Depending on how you are using OneTouch, you should be adding the user to Authy either at the time where they are creating the account in your application, or for 2FA, at the point where they are enabling 2FA for their account. When you call the Authy API for a new user registration to register the user, the Authy API will respond with the user id (Authy ID).
After the registration process is completed, your mobile application can interact with Authy OneTouch approval requests.