validateTokens method

Set<APIToken> validateTokens()

Implementation

Set<APIToken> validateTokens() {
  var tokens = this.tokens;
  if (tokens.isEmpty) return tokens;

  var now = DateTime.now();
  tokens.removeWhere((t) => t.isExpired(now: now));
  return tokens;
}