public static boolean hasValidCredentials(){
  return apiKey != null && !apiKey.isEmpty() && authToken != null && !authToken.isEmpty() && hasValidAuthenticatedUser();
}

public static boolean hasValidCredentials ( ) { return apiKey != null && ! apiKey . isEmpty ( ) && authToken != null && ! authToken . isEmpty ( ) && hasValidAuthenticatedUser ( ) ; }
check if both api key and auth token are valid
