                ; Set up a listener per Google's tutorial
                (.listen is-signed-in update-after-auth)
                ; Also set the initial value
-               (update-after-auth  (.get is-signed-in)) ))))
+               ; Unfortunrately, this often doesn't work if we were already signed in...
+               ; I'm missing something
+               (update-after-auth (.get is-signed-in)) ))))
 
 ; In retrospect, this was not really useful (these keys aren't secret).
 ; We're also hurting performance a little, but it's not relevant to our 

(ns scrape-n-mail.core
    (:require [rum.core :as rum]
              [cljs-http.client :as http]
              [cljs.core.async :refer [<!]])
    (:require-macros [cljs.core.async.macros :refer [go go-loop]])
    )

                {:discoveryDocs ["https://sheets.googleapis.com/$discovery/rest?version=v4"]
                 :scope "https://www.googleapis.com/auth/spreadsheets.readonly"}
                (merge (:body keys-resp))
                ; We definitely need this to undo the auto-converstion to EDN
                ; that http/get does
                clj->js )]
          (.load js/gapi "client:auth2" #(init-client config-keys)) )
        #_(println keys-resp) )))

(rum/defc hello-world < rum/reactive []
  [:div
