Tenant JWT Settings
On this page
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 on a Tenant, and click JWT . For how FusionAuth issues and signs tokens, see JSON Web Tokens.

JSON Web Token Settings#
JWT durationThe length of time the issued token (access token and Id token) is valid. JWT tokens are typically short lived.
Access token signing keyThe key used to sign the access token JWT.
Access token verification keysThese 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 keyThe key used to sign the Id token JWT.
Id token verification keysThese 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 durationThe length of time the refresh token is valid. Refresh tokens are typically long lived.
Refresh token expirationThe 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 anORoperator: 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 usageThe 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 periodWhen 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 revocationThe 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 prevents login.
- On multi-factor enable: revokes all of a user's refresh tokens when a user enables multi-factor authentication.
- 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
Learn how FusionAuth provides and manages JSON Web Tokens.
Learn about the APIs that allow you to manage Refresh Tokens, verify Access Tokens and retrieve public keys used for verifying JWT signatures.
API documentation for the FusionAuth Issue a JWT API.
API documentation for the Reconcile a JWT Using the External JWT Provider API.