# 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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.electricbolt.co.nz/appfigurate-user-guide/settings/passcode-lock.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
