# deviceVerifyTouchSensor

## Description

Verifies the fingerprint that is stored in a user's mobile device.

## Input / Parameter

| Name    | Description                                       | Input Type  | Default | Options | Required |
| ------- | ------------------------------------------------- | ----------- | ------- | ------- | -------- |
| key     | The key in the device keychain.                   | String/Text | -       | -       | Yes      |
| message | The message to display in the fingerprint dialog. | String/Text | -       | -       | Yes      |

## Output

N/A

## Callback

### callback

The function to be be executed if the fingerprint is verified successfully.

## Video

Coming Soon.

## Example

The user wants to verify the fingerprint stored in their device and display the password in the dialog box.

### Steps

| No. | Description                                                                                                                                                                                                                  |                                                                                                                                                            |
| --- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 1.  | ![](https://399701567-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwmJ1RKjM2uNFaL6fO3Xu%2Fuploads%2Fgit-blob-b7e394f9eb135f872c7029255efb7dd66f984b1a%2FdeviceVerifyTouchSensor-step-1.png?alt=media) | Drag a button to a page in the mobile designer. Select the event `click` for the button and drag the function `deviceVerifyTouchSensor` to the event flow. |
| 2.  | ![](https://399701567-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwmJ1RKjM2uNFaL6fO3Xu%2Fuploads%2Fgit-blob-b37118ed50d4247586957f56ba2dfc67f29f09f3%2FdeviceVerifyTouchSensor-step-2.png?alt=media) | Fill in the parameters of the function.                                                                                                                    |
| 3.  | ![](https://399701567-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwmJ1RKjM2uNFaL6fO3Xu%2Fuploads%2Fgit-blob-226cb2a4658949933b8de730d03a9542fc9f4e3b%2FdeviceVerifyTouchSensor-step-3.png?alt=media) | Drag the function to be executed when the touch sensor is verified successfully. In this example, we are using the `infoDialog` function.                  |
| 4.  | ![](https://399701567-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwmJ1RKjM2uNFaL6fO3Xu%2Fuploads%2Fgit-blob-c3c0687be2d8786962febd7e3c42913e02eecda3%2FdeviceVerifyTouchSensor-step-4.png?alt=media) | Fill in the parameters of the function.                                                                                                                    |

### Result

When the button is pressed, the mobile device will ask for fingerprint authentication with the message entered. Touch the touch sensor of the device for the fingerprint to be recognized. The dialog will appear to show the password.

## Links
