Explorar o código

feat: export login-callback fn

if users can't redirect from browser back to app,
the workaround is calling
frontend.handler.user.login_callback("<code>") to finish login progress
rcmerci %!s(int64=2) %!d(string=hai) anos
pai
achega
6fd8d8d165
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/main/frontend/handler/user.cljs

+ 1 - 1
src/main/frontend/handler/user.cljs

@@ -146,7 +146,7 @@
         ;; refresh remote graph list by pub login event
         (when (user-uuid) (state/pub-event! [:user/fetch-info-and-graphs]))))))
 
-(defn login-callback [code]
+(defn ^:export login-callback [code]
   (state/set-state! [:ui/loading? :login] true)
   (go
     (let [resp (<! (http/get (str "https://" config/API-DOMAIN "/auth_callback?code=" code)