TokenValidityUnitsType - Amazon Cognito

TokenValidityUnitsType

The data type TokenValidityUnits specifies the time units you use when you set the duration of ID, access, and refresh tokens.

Contents

AccessToken

A time unit of seconds, minutes, hours, or days for the value that you set in the AccessTokenValidity parameter. The default AccessTokenValidity time unit is hours.

Type: String

Valid Values: seconds | minutes | hours | days

Required: No

IdToken

A time unit of seconds, minutes, hours, or days for the value that you set in the IdTokenValidity parameter. The default IdTokenValidity time unit is hours.

Type: String

Valid Values: seconds | minutes | hours | days

Required: No

RefreshToken

A time unit of seconds, minutes, hours, or days for the value that you set in the RefreshTokenValidity parameter. The default RefreshTokenValidity time unit is days.

Type: String

Valid Values: seconds | minutes | hours | days

Required: No

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: