🎉 Add github auth provider.

This commit is contained in:
Vitaly Kornilov 2021-01-06 11:54:37 +01:00 committed by Alonso Torres
parent 63cc6aecaf
commit f3b5b07796
9 changed files with 62 additions and 3 deletions

View file

@ -91,6 +91,12 @@
(->> (http/send! {:method :post :uri uri})
(rx/mapcat handle-response))))
(defmethod mutation :login-with-github
[id params]
(let [uri (str cfg/public-uri "/api/oauth/github")]
(->> (http/send! {:method :post :uri uri})
(rx/mapcat handle-response))))
(defmethod mutation :upload-file-media-object
[id params]
(let [form (js/FormData.)]