> ## Documentation Index
> Fetch the complete documentation index at: https://docs.open-metadata.org/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).

To configure Login Configuration, follow the steps below:

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

   <img src="https://mintcdn.com/openmetadata/zEoaNtzSP56eggdP/public/images/how-to-guides/admin-guide/preferences/access-login-1.13.png?fit=max&auto=format&n=zEoaNtzSP56eggdP&q=85&s=8b805965cecf58e8ea982dac8678d645" alt="Login Configuration settings" width="2863" height="1442" data-path="public/images/how-to-guides/admin-guide/preferences/access-login-1.13.png" />

2. Click **Edit**.

   <img src="https://mintcdn.com/openmetadata/P5zCjbPoeck_wz3f/public/images/how-to-guides/admin-guide/preferences/select-edit-login.png?fit=max&auto=format&n=P5zCjbPoeck_wz3f&q=85&s=416de8da936a81b97a771eccaf30e96a" alt="Login Configuration page with Edit button" width="2854" height="650" data-path="public/images/how-to-guides/admin-guide/preferences/select-edit-login.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: `30`.
   * **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/openmetadata/zEoaNtzSP56eggdP/public/images/how-to-guides/admin-guide/preferences/configure-login.png?fit=max&auto=format&n=zEoaNtzSP56eggdP&q=85&s=439237fbf0027a024cc6fa1e85ed6e1e" alt="Edit Login Configuration form" width="1850" height="852" data-path="public/images/how-to-guides/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>
