authorized method

bool authorized()

Implementation

bool authorized() {
  final token = this.token;
  if (token.isEmpty) {
    return false;
  }
  final expiresAt = _state.expiresAt;
  if (expiresAt != null && !expiresAt.isAfter(DateTime.now())) {
    return false;
  }
  return true;
}