Interface CfnUserPoolClient.ITokenValidityUnitsProperty
The time units you use when you set the duration of ID, access, and refresh tokens.
Namespace: Amazon.CDK.AWS.Cognito
Assembly: Amazon.CDK.AWS.Cognito.dll
Syntax (csharp)
public interface ITokenValidityUnitsProperty
Syntax (vb)
Public Interface ITokenValidityUnitsProperty
Remarks
The default unit for RefreshToken is days, and the default for ID and access tokens is hours.
ExampleMetadata: fixture=_generated
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"
};
Synopsis
Properties
AccessToken | A time unit of |
IdToken | A time unit of |
RefreshToken | A time unit of |
Properties
AccessToken
A time unit of seconds
, minutes
, hours
, or days
for the value that you set in the AccessTokenValidity
parameter.
virtual string AccessToken { get; }
Property Value
System.String
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.
virtual string IdToken { get; }
Property Value
System.String
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.
virtual string RefreshToken { get; }
Property Value
System.String
Remarks
The default RefreshTokenValidity
time unit is days. RefreshTokenValidity
duration can range from 60 minutes to 10 years.