/
identity.cljs
28 lines (18 loc) · 1.04 KB
/
identity.cljs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
(ns chromex.app.identity (:require-macros [chromex.app.identity :refer [gen-wrap]])
(:require [chromex.core]))
; -- functions --------------------------------------------------------------------------------------------------------------
(defn get-accounts* [config]
(gen-wrap :function ::get-accounts config))
(defn get-auth-token* [config details]
(gen-wrap :function ::get-auth-token config details))
(defn get-profile-user-info* [config]
(gen-wrap :function ::get-profile-user-info config))
(defn remove-cached-auth-token* [config details]
(gen-wrap :function ::remove-cached-auth-token config details))
(defn launch-web-auth-flow* [config details]
(gen-wrap :function ::launch-web-auth-flow config details))
(defn get-redirect-url* [config path]
(gen-wrap :function ::get-redirect-url config path))
; -- events -----------------------------------------------------------------------------------------------------------------
(defn on-sign-in-changed* [config channel & args]
(gen-wrap :event ::on-sign-in-changed config channel args))