isExpired property

bool isExpired

Whether or not these credentials have expired.

Note that it's possible the credentials will expire shortly after this is called. However, since the client's expiration date is kept a few seconds earlier than the server's, there should be enough leeway to rely on this.

Implementation

bool get isExpired {
  var expiration = this.expiration;
  return expiration != null && DateTime.now().isAfter(expiration);
}