ApiAccessTokenHelperGetExpiresDate - метод

Calculates the expiration date of an API access token based on its creation and valid-to times. If no valid-to time is provided, it defaults to a 3-year lifetime from the creation date. The time is set to 23:59:59 UTC on the expiration day.

Definition

Пространство имён: Tessa.Tokens.Api
Сборка: Tessa (в Tessa.dll) Версия: 4.1.3+7e2b1422f9b8c7c41fbbc4b151a843bed05319ab
C#
public static DateTime GetExpiresDate(
	DateTime? created = null,
	DateTime? validTo = null
)

Параметры

created  NullableDateTime  (Optional)
The creation date of the token. Defaults to the current UTC time if not provided.
validTo  NullableDateTime  (Optional)
The valid-to date for the token.

Возвращаемое значение

DateTime
The expiration date of the API access token.

См. также