> For the complete documentation index, see [llms.txt](https://docs.electricbolt.co.nz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.electricbolt.co.nz/appfigurate-user-guide/settings/passcode-lock.md).

# Passcode Lock

{% hint style="info" %}
Also see [Security Best Practices](/additional-reading/security/best-practice.md#protecting-your-app-metadata-records).
{% endhint %}

Passcode Lock allows for a 4 digit PIN on launch and when exporting app metadata records.

<div align="left"><figure><img src="/files/FqJtBmfNfzlWazZQh26c" alt="" width="375"><figcaption></figcaption></figure></div>

## Passcode on launch

To enable a 4 digit PIN on launch of Appfigurate, tap the switch on. The 4 digit PIN overlay screen will be displayed:

<div align="left"><figure><img src="/files/7xX1eDD7qQGZwcGQtdCU" alt="" width="375"><figcaption></figcaption></figure></div>

Enter a 4 digit PIN. You'll be prompted to confirm the 4 digit PIN a second time. Once matching, the PIN will be set.&#x20;

Anytime you now launch Appfigurate or attempt to enter the Passcode Lock screen you will be prompted for the 4 digit PIN.

{% hint style="danger" %}
**Warning:** If you enter your 4 digit PIN incorrectly 5 times, Appfigurate will delete the local database and reset back to factory defaults, and the [Select app](/appfigurate-user-guide/select-app.md) screen displayed. If you don't have a backup of your app metadata records they will be lost.
{% endhint %}

{% hint style="info" %}
**Note:** the 4 digit PIN overlay screen will not appear on top of system provided screens such as the iOS Document Picker. If you are using one of these screens and then leave the app and come back, the 4 digit PIN overlay screen will **not** appear.
{% endhint %}

## Biometrics on launch

If you have enabled 4 digit PIN on launch, an additional row *may* appear that allows Biometrics on launch to be enabled:

* **iOS:** TouchID or FaceID must be enrolled.

## Passcode to export and backup

You can set a 4 digit PIN when attempting to export or backup app metadata records.
