auth now actually works straight through google

This commit is contained in:
Bryce Covert
2017-12-18 22:45:24 -08:00
parent 3b3295f535
commit 36806c9cf6
6 changed files with 57 additions and 14 deletions

View File

@@ -27,6 +27,9 @@
(defn ^:export init []
(dev-setup)
(when-let [jwt (.get (js/URLSearchParams. (.-search (.-location js/window))) "jwt")]
(println "got jwt" jwt)
(.setItem js/localStorage "jwt" jwt))
(pushy/start! (pushy/pushy dispatch-route parse-url))
(re-frame/dispatch-sync [::events/initialize-db])
(mount-root))