Skip to content

RefreshTokenRotationType

Source code in docs_src/capo_cognito_identity_provider/types/refresh_token_rotation_type.py
class RefreshTokenRotationType(TypedDict, closed=True):
    feature: "capo_cognito_identity_provider.types.feature_type.FeatureType"
    """<p>The state of refresh token rotation for the current app client.</p>"""
    retry_grace_period_seconds: NotRequired[
        "capo_cognito_identity_provider.types.retry_grace_period_seconds_type.RetryGracePeriodSecondsType"
    ]
    """<p>When you request a token refresh with <code>GetTokensFromRefreshToken</code>, 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 <code>RetryGracePeriodSeconds</code> is <code>0</code>, the grace period is disabled and a successful request immediately invalidates the submitted refresh token.</p>"""

feature instance-attribute

feature: FeatureType

The state of refresh token rotation for the current app client.

retry_grace_period_seconds instance-attribute

retry_grace_period_seconds: NotRequired[RetryGracePeriodSecondsType]

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.