mirror of
https://github.com/logseq/logseq.git
synced 2026-04-27 23:54:55 +00:00
fix(sync): won't refresh tokens&remote-graphs after started app
This commit is contained in:
@@ -143,9 +143,9 @@
|
||||
refresh-token (js/localStorage.getItem "refresh-token")]
|
||||
(when refresh-token
|
||||
(set-tokens! id-token access-token refresh-token)
|
||||
(when-not (or (nil? id-token) (nil? access-token)
|
||||
(-> id-token parse-jwt almost-expired?)
|
||||
(-> access-token parse-jwt almost-expired?))
|
||||
(when (or (nil? id-token) (nil? access-token)
|
||||
(-> id-token parse-jwt almost-expired?)
|
||||
(-> access-token parse-jwt almost-expired?))
|
||||
(go
|
||||
;; id-token or access-token expired
|
||||
(<! (<refresh-id-token&access-token))
|
||||
|
||||
Reference in New Issue
Block a user