> For the complete documentation index, see [llms.txt](https://ztrust.gitbook.io/ztrust-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ztrust.gitbook.io/ztrust-documentation/user-manual-ztrust-v2.0/admin-manual/how-to-set-up-multi-factor-authentication/setup-time-based-one-time-password-totp-based-login.md).

# Setup Time-based One-Time Password (TOTP) Based Login

Time-based One-Time Password (TOTP) for two-factor authentication to enhance account security. Users are required to enter a time-sensitive code generated by an authenticator app during login. TOTP can be easily enabled and customised through the authentication flows in the ZTrust admin console.

To configure the QR Code Based Authentication, follow the below steps:

1. Login to the ZTrust Admin console.
2. Go to the Authentication tab

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXeHWM_shu8E2ZdP8QRWSGBSIKTYdIMwZ2X2DTT5mxtYh1lfyti3RZG4IoFqxxEIS4bcmAQ5OaLxz9SpnZSHDHEiOBWSl96NHPMP2eY5RhLUQiIECTgXJv9mYWMHqtdkFOI-WTp1?key=k8GKkOxwaniOrLyz5xrOhXha" alt=""><figcaption></figcaption></figure>

3. In Flows choose a browser and make a copy of it.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXfD5m7g05KR_QKrDXN1GI3GrGKJDhbHtqugAifNEnmc2uD4hEyu6STj9fIoWNDuCzyhqmTc2frLPE3CbrUBb5_DuHSDXbrDW-_rv6-AyqrBCjMF_C1ft3U2NImkCH3JhaE3jC8Yww?key=k8GKkOxwaniOrLyz5xrOhXha" alt=""><figcaption></figcaption></figure>

4. After coping create a flow like below

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXfYeuwOsUdq-5OVq7ltmr4c0jwe9t6Bda4l3_EC_x1j0_r1ihOMb75ZcHAiGO-NXMEA0HlCf1ZIiZ_BoYaNMJ1ct-YOes_WEDx5lcYv7HbKqb6U-DJMJto-JjpC7rsTqNlr2HMQ?key=k8GKkOxwaniOrLyz5xrOhXha" alt=""><figcaption></figcaption></figure>

5. Next click on the Action then Bind flow&#x20;

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXf18M05mpfTuQ_-Ri8o3CoSNLLkR9lQX3B0ZJNY_dZIUjSIzoc9FtAwUmDmpLBlcdVvlDVmvHqFIUa1cSb4EZBPjq3pWnDdhCz_ERSKZLC_jVeyg9BNo-IY7xYAFFUMrVliKO4efQ?key=k8GKkOxwaniOrLyz5xrOhXha" alt=""><figcaption></figcaption></figure>

6. Select as Browser Flow, Click on Save.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXfJs1lMMdpKKEN3PvAJ8PHOi7gJ4D7VNpvUjO5rEMWrFy1hzSPDSLkysief-jfLwVFzkFdc7s3pUswc2JQ9RiA-MGyazz5Mvl_XvRCi8LWJdSis-r0l1rjBJSRMUN1L3Ich9veC?key=k8GKkOxwaniOrLyz5xrOhXha" alt=""><figcaption></figcaption></figure>

7. The TOTP Based LogInfeature is configured now.
8. If you have integrated an application, open its endpoint otherwise, open the Self-Service Portal URL to verify the flow.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdD34YL93sxpmgY05Fo3S8MThw4_KeKPzbzky4ODzWW5zhuccGUPhedUk6ni4UQymQnaTI9I32QtSBLjM0UBeyiukHFnOcqcpOvfyCHsRRgKLTld4YZO_SZ2h4JZV3jczuQPX2pKQ?key=k8GKkOxwaniOrLyz5xrOhXha" alt=""><figcaption></figcaption></figure>
