> ## Documentation Index
> Fetch the complete documentation index at: https://openmetadata-docs-release-watchers.mintlify.site/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-docs-release-watchers/FWfOFtcoaGKeXaiD/public/images/how-to-guides/admin-guide/preferences/access-login.png?fit=max&auto=format&n=FWfOFtcoaGKeXaiD&q=85&s=ead2a291b4a5e7485a251f092b6852f6" alt="Login Configuration settings" width="3008" height="1582" data-path="public/images/how-to-guides/admin-guide/preferences/access-login.png" />

2. Click **Edit**.

   <img src="https://mintcdn.com/openmetadata-docs-release-watchers/VFDqk9zVvK-301g8/public/images/how-to-guides/admin-guide/preferences/select-edit-login.png?fit=max&auto=format&n=VFDqk9zVvK-301g8&q=85&s=7c33a5ce4c199147f9a645a85e0df133" 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-docs-release-watchers/FWfOFtcoaGKeXaiD/public/images/how-to-guides/admin-guide/preferences/configure-login.png?fit=max&auto=format&n=FWfOFtcoaGKeXaiD&q=85&s=764f5394a8f5d977e09964491aa78721" 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>
