Browse Source

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 2 years ago
parent
commit
6fd8d8d165
1 changed files with 1 additions and 1 deletions
  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)