Interface CfnUserPoolClient.ITokenValidityUnitsProperty
The time units you use when you set the duration of ID, access, and refresh tokens.
public interface CfnUserPoolClient.ITokenValidityUnitsProperty
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Cognito;
var tokenValidityUnitsProperty = new TokenValidityUnitsProperty {
AccessToken = "accessToken",
IdToken = "idToken",
RefreshToken = "refreshToken"
};
Remarks
The default unit for RefreshToken is days, and the default for ID and access tokens is hours.
ExampleMetadata: fixture=_generated
Properties
AccessToken
A time unit of seconds
, minutes
, hours
, or days
for the value that you set in the AccessTokenValidity
parameter.
string? AccessToken { get; }
Property Value
Remarks
The default AccessTokenValidity
time unit is hours. AccessTokenValidity
duration can range from five minutes to one day.
IdToken
A time unit of seconds
, minutes
, hours
, or days
for the value that you set in the IdTokenValidity
parameter.
string? IdToken { get; }
Property Value
Remarks
The default IdTokenValidity
time unit is hours. IdTokenValidity
duration can range from five minutes to one day.
RefreshToken
A time unit of seconds
, minutes
, hours
, or days
for the value that you set in the RefreshTokenValidity
parameter.
string? RefreshToken { get; }
Property Value
Remarks
The default RefreshTokenValidity
time unit is days. RefreshTokenValidity
duration can range from 60 minutes to 10 years.