# RefreshTokenRotationProperty

The configuration of your app client for refresh token rotation.

When enabled, your app client issues new ID, access, and refresh tokens when users renew their sessions with refresh tokens. When disabled, token refresh issues only ID and access tokens.

- Source: Generated code
- Type last changed: v2.195.0 · 7 May 2025

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cognito as cognito } from 'aws-cdk-lib';
const refreshTokenRotationProperty: cognito.CfnUserPoolClient.RefreshTokenRotationProperty = {
  feature: 'feature',
  retryGracePeriodSeconds: 123,
};
```

## Properties

- `feature`: string — The state of refresh token rotation for the current app client.

- `retryGracePeriodSeconds`: number — When you request a token refresh with `GetTokensFromRefreshToken` , the original refresh token that you're rotating out can remain valid for a period of time of up to 60 seconds.

  This allows for client-side retries. When `RetryGracePeriodSeconds` is `0` , the grace period is disabled and a successful request immediately invalidates the submitted refresh token.
