Skip to content

IsValid Method ​

Definition ​

  • Namespace: JASE.ServiceNow
  • Assembly: JASE.ServiceNow.dll

bool IsValid(TimeSpan skew) ​

csharp
bool IsValid(TimeSpan skew)

Returns true when the access token is present and will remain valid beyond the specified time skew.

Parameters ​

NameDescription
skewAmount of time to subtract from Expires when determining validity. This allows refreshing the token slightly before its actual expiration.

Returns ​

True if the token exists, has a positive lifespan, and is not expired within the specified skew.