> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getcollate.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Login Configuration

> Configure the failed login lockout threshold and JWT session expiry.

# Login Configuration

Login Configuration protects your instance against repeated failed sign-in attempts and controls how long a signed-in session stays valid. Use it to decide:

* How many wrong passwords an account tolerates before it's temporarily locked out
* How long that lockout lasts
* How often a signed-in user is asked to sign in again

Getting this right matters for security (too lenient invites brute-force attempts) and for user experience (too strict logs people out constantly).

**Purpose and Benefits**

* **Purpose**: Set the failed-login lockout threshold and JWT session expiry.
* **Benefits**: Protects against brute-force login attempts while controlling how often users are asked to sign back in.

## How to Configure

To configure Login Configuration, follow the steps below:

1. Navigate to **Settings** > **Preferences** > **Login Configuration**.

   <img src="https://mintcdn.com/collatedocs/2MYu2rR66bA4ynyK/public/images/how-to-guides/admin-guide/preferences/access-login-config.png?fit=max&auto=format&n=2MYu2rR66bA4ynyK&q=85&s=c3092b104c457ba7f4dbbc5e20b79f25" alt="Login Configuration settings" width="2820" height="1469" data-path="public/images/how-to-guides/admin-guide/preferences/access-login-config.png" />

2. Click **Edit**.

   <img src="https://mintcdn.com/collatedocs/WV0oBDGC-df5gLwn/public/images/ai-2.0/admin-guide/preferences/select-login-edit.png?fit=max&auto=format&n=WV0oBDGC-df5gLwn&q=85&s=9441025725260a775d4d2b41fdd47270" alt="Login Configuration page with current values and Edit button" width="2838" height="648" data-path="public/images/ai-2.0/admin-guide/preferences/select-login-edit.png" />

3. Set the following fields:

   * **Max Login Fail Attempts**: Number of consecutive failed login attempts allowed before the account is temporarily blocked. Default: `3`.
   * **Access Block Time**: How long, in seconds, an account stays blocked after exceeding the max failed attempts. Default: `600`.
   * **JWT Token Expiry Time**: How long, in seconds, a login session token remains valid before the user must sign in again. Default: `3600`.

   <img src="https://mintcdn.com/collatedocs/WV0oBDGC-df5gLwn/public/images/ai-2.0/admin-guide/preferences/configure-login.png?fit=max&auto=format&n=WV0oBDGC-df5gLwn&q=85&s=b143e1ceaf8acb4b55be2c11929d7445" alt="Edit Login Configuration form" width="1982" height="848" data-path="public/images/ai-2.0/admin-guide/preferences/configure-login.png" />

4. Click **Save**.

<Note>
  Changes to Login Configuration can take a few minutes to take effect across the platform.
</Note>
