<PackageReference Include="Microsoft.IdentityModel.Tokens" Version="8.19.0" />

Microsoft.IdentityModel.Tokens.Experimental.LifetimeValidationError

Represents an error that occurs when a token's lifetime cannot be validated. If available, the not before and expires values are stored in NotBefore and Expires.
public DateTime? Expires { get; }

The date at which the token expires.

public DateTime? NotBefore { get; }

The date from which the token is valid.

public LifetimeValidationError(MessageDetail messageDetail, ValidationFailureType validationFailure, StackFrame stackFrame, DateTime? notBefore, DateTime? expires, Exception innerException)

Initializes a new instance of the LifetimeValidationError class.

public LifetimeValidationError(MessageDetail messageDetail, ValidationFailureType validationFailure, StackFrame stackFrame, DateTime? notBefore, DateTime? expires)

Initializes a new instance of the LifetimeValidationError class.