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.2.0+ffad8363f63902f18b3b3f4cfa533a14b2fb19a6
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.

См. также