code: func hapiRemoteTokens(w http.ResponseWriter, r *http.Request) {
  	if os.Getenv("ABOT_ENV") != "test" {
  		if !isAdmin(w, r) {
  			return
  		}
  		if !isLoggedIn(w, r) {
  			return
  		}
  	}
  
  	// We initialize the variable here because we want empty slices to
  	// marshal to [], not null
  	auths := []struct {
  		Token     string
  		Email     string
  		CreatedAt time.Time
  		PluginIDs dt.Uint64Slice
  	}{}
  	q := `SELECT token, email, pluginids, createdat FROM remotetokens`
  	err := db.Select(&auths, q)
  	if err != nil && err != sql.ErrNoRows {
  		writeErrorInternal(w, err)
  		return
  	}
  	byt, err := json.Marshal(auths)
  	if err != nil {
  		writeErrorInternal(w, err)
  		return
  	}
  	_, err = w.Write(byt)
  	if err != nil {
  		log.Info("failed to write response.", err)
  	}
  }
docs: // hapiRemoteTokens returns the final six bytes of each auth token used to
  // authenticate to the remote service and when.