# Tenant JWT Settings

Reference for the fields on the JWT tab of the Tenant form in the Admin UI, including signing keys, token durations, and refresh token settings.

> For the index of this section of the site, see [llms.txt](https://fusionauth.io/docs/llms.txt)

The JWT tab sets the default signing keys, token durations, and refresh token settings for the Tenant. An Application can override these settings on the Application JWT tab. To open the tab, navigate to Tenants , click edit on a Tenant, and click JWT . For how FusionAuth issues and signs tokens, see [JSON Web Tokens](https://fusionauth.io/docs/authentication/login-api/json-web-tokens.md).

![The JSON Web Token and refresh token settings on the JWT tab of the Tenant form.](https://fusionauth.io/img/docs/screenshots/tenant-jwt.png)

## JSON Web Token Settings

`JWT duration`

*   Required

The length of time the issued token (access token and Id token) is valid. JWT tokens are typically short lived.

`Access token signing key`

*   Optional

The key used to sign the access token JWT.

`Access token verification keys`

*   Optional
*   Available since `1.69.0`

These are the keys that FusionAuth uses to verify access token signatures. If a verification key is expiring, add its replacement here so either key can be used to verify until the old one expires or is removed. The *Access token signing key* value does not need to be explicitly added here.

`Id token signing key`

*   Optional

The key used to sign the Id token JWT.

`Id token verification keys`

*   Optional
*   Available since `1.69.0`

These are the keys that FusionAuth uses to verify Id token signatures. If a verification key is expiring, add its replacement here so either key can be used to verify until the old one expires or is removed. The *Id token signing key* value does not need to be explicitly added here.

## Refresh Token Settings

`Refresh token duration`

*   Required
*   Defaults to `43,200`

The length of time the refresh token is valid. Refresh tokens are typically long lived.

`Refresh token expiration`

*   Optional
*   Defaults to `Fixed`

The **Refresh token expiration** may be one of the following:

*   **fixed window** (`Fixed`): expires a configurable time-to-live after *initial issuing*
*   **sliding window** (`SlidingWindow`): expires a configurable time-to-live after *the last time the refresh token was used*
*   **sliding window with a maximum lifetime** (`SlidingWindowWithMaximumLifetime`): combines the previous two options like an `OR` operator: expires a configurable time-to-live after *the last time the refresh token was used*, as long as it does not exceed a maximum lifetime after *initial issuing*

To configure the time-to-live, use `refreshTokenTimeToLiveInMinutes`; to configure the maximum lifetime, use `maximumTimeToLiveInMinutes`.

Consider a scenario where a refresh token is issued at 1:00, has an time-to-live of 60 minutes, and a maximum lifetime of 6 hours:

*   If the expiration is **fixed**, the token will expire at 2:00.
*   If the expiration is a **sliding window**, then if the refresh token is used at 1:55, it would then expire at 2:55. If it were then used at 2:50, it would expire at 3:50. This can continue *forever*, as long as the client always refreshes the token before 60 minutes have elapsed (good luck with daylight savings!).
*   If the expiration is a **sliding window with a maximum lifetime**, then if the refresh token is used at 1:55, it would then expire at 2:55. If it were then used at 2:50, it would expire at 3:50. This can continue until 7:00, when the refresh token passes the *maximum lifetime* and expires.

`Refresh token usage`

*   Optional
*   Defaults to `Reusable`

The **Refresh token usage** may be reusable or one time use. By default, a token is reusable and the token does not change after it was issued. With a one time use token, the token value will be changed each time the token is used to refresh a JWT. This means the client must store the new value after each use.

`One-time use grace period`

*   Optional
*   Defaults to `0`

When **Refresh token usage** is set to `One-time use`, you may optionally set the grace period to something greater than `0` seconds.

The grace period is the length of time specified in seconds that a one time use token can be reused.

This value must be greater than `0` and less than `86400` which is equal to 24 hours. Setting this value to `0` effectively disables the grace period which means a one-time token may not be reused. For security reasons, you should keep this value as small as possible, and only increase past `0` to improve reliability for an asynchronous or clustered integration that may require a brief grace period.

One-time use tokens refreshed within a grace period are not considered for revocation when the Tenant Refresh Token Revocation Policy is configured to revoke a one-time use refresh token on reuse. When a token is reused within the grace period the current token will be returned on the API response and the token will not be rotated.

`Refresh token revocation`

*   Optional

The events that cause refresh tokens to be revoked. The possible values are:

*   **On action preventing login**: revokes all of a user's refresh tokens when a [user action](https://fusionauth.io/docs/users/user-actions.md) prevents login.
*   **On multi-factor enable**: revokes all of a user's refresh tokens when a user enables [multi-factor authentication](https://fusionauth.io/docs/authentication/multi-factor-authentication.md).
*   **On password change**: revokes all of a user's refresh tokens when a user changes their password.
*   **On reuse of a one-time use token**: revokes the *entire refresh token chain* on submission of any one-time use token that has already been rotated outside of the configured grace period. This includes the current refresh token. Does not affect refresh tokens from the user's other sessions.

Related

[Authentication JSON Web Tokens Learn how FusionAuth provides and manages JSON Web Tokens. json web tokensjwt](https://fusionauth.io/docs/authentication/login-api/json-web-tokens.md)

[APIs JWTs & Refresh Token API Learn about the APIs that allow you to manage Refresh Tokens, verify Access Tokens and retrieve public keys used for verifying JWT signatures. jwt](https://fusionauth.io/docs/apis/jwt.md)

[APIs Issue a JWT API API documentation for the FusionAuth Issue a JWT API. jwt](https://fusionauth.io/docs/apis/jwt/issue-a-jwt.md)

[APIs Reconcile a JWT Using the External JWT Provider API API documentation for the Reconcile a JWT Using the External JWT Provider API. jwt](https://fusionauth.io/docs/apis/jwt/reconcile-a-jwt-using-the-external-jwt-provider.md)
---

## Other pages in Tenants

> For the full index of this section, see [Concepts](https://fusionauth.io/docs/llms-concepts.txt).

- [Tenant Advanced Settings](https://fusionauth.io/docs/concepts/types/tenants/advanced.md): Reference for the fields on the Advanced tab of the Tenant form in the Admin UI, including external identifier durations, code generation, and SMTP properties.
- [Tenant Connector Settings](https://fusionauth.io/docs/concepts/types/tenants/connectors.md): Reference for the Connector policy fields on the Connectors tab of the Tenant form in the Admin UI.
- [Tenant Email Settings](https://fusionauth.io/docs/concepts/types/tenants/email.md): Reference for the SMTP fields on the Email tab of the Tenant form in the Admin UI.
- [Tenant Family Settings](https://fusionauth.io/docs/concepts/types/tenants/family.md): Reference for the fields on the Family tab of the Tenant form in the Admin UI, which configure parent and child accounts.
- [Tenant General Settings](https://fusionauth.io/docs/concepts/types/tenants/general.md): Reference for the fields on the General tab of the Tenant form in the Admin UI, including the issuer, the login theme, and username settings.
- [Tenant Identity Settings](https://fusionauth.io/docs/concepts/types/tenants/identities.md): Reference for the fields on the Identities tab of the Tenant form in the Admin UI, including email and phone verification and template settings.
- [Tenants](https://fusionauth.io/docs/concepts/types/tenants.md): Learn about tenants, which isolate users, applications, and configuration in one FusionAuth instance.
- [Tenant Multi-Factor Settings](https://fusionauth.io/docs/concepts/types/tenants/multi-factor.md): Reference for the fields on the Multi-Factor tab of the Tenant form in the Admin UI, including the MFA login policy and the MFA methods.
- [Tenant OAuth Settings](https://fusionauth.io/docs/concepts/types/tenants/oauth.md): Reference for the fields on the OAuth tab of the Tenant form in the Admin UI, including the SSO session timeout and token exchange.
- [Tenant Password Settings](https://fusionauth.io/docs/concepts/types/tenants/password.md): Reference for the fields on the Password tab of the Tenant form in the Admin UI, including failed login lockout, breach detection, password rules, and hashing.
- [Tenant SCIM Settings](https://fusionauth.io/docs/concepts/types/tenants/scim.md): Reference for the fields on the SCIM tab of the Tenant form in the Admin UI, which configure the FusionAuth SCIM server.
- [Tenant Security Settings](https://fusionauth.io/docs/concepts/types/tenants/security.md): Reference for the fields on the Security tab of the Tenant form in the Admin UI, including CAPTCHA, blocked domains, client risk signals, and rate limits.
- [Tenant WebAuthn Settings](https://fusionauth.io/docs/concepts/types/tenants/webauthn.md): Reference for the fields on the WebAuthn tab of the Tenant form in the Admin UI, including the relying party and the passkey workflows.
- [Tenant Webhook Settings](https://fusionauth.io/docs/concepts/types/tenants/webhooks.md): Reference for the fields on the Webhooks tab of the Tenant form in the Admin UI, which select webhooks and set event transactions.
