tokenIsValid static method

bool tokenIsValid(
  1. Token? token
)

Implementation

static bool tokenIsValid(Token? token) {
  if (token == null) return false;
  if (Token.isExpired(token)) return false;
  if (token.accessToken == null) return false;
  return true;
}