about summary refs log tree commit diff
path: root/src/state/index.ts
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2022-11-21 16:17:40 -0600
committerPaul Frazee <pfrazee@gmail.com>2022-11-21 16:17:40 -0600
commitb2dba9a15b0b27c9221808ff037090c2b4c2d500 (patch)
tree66cafb354e0863879023de55ca8a7e472708f465 /src/state/index.ts
parented146a582c140b9a472298390dafbc07bd06cf60 (diff)
downloadvoidsky-b2dba9a15b0b27c9221808ff037090c2b4c2d500.tar.zst
Track rotated auth tokens
Diffstat (limited to 'src/state/index.ts')
-rw-r--r--src/state/index.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/state/index.ts b/src/state/index.ts
index fd81bc842..7bb757757 100644
--- a/src/state/index.ts
+++ b/src/state/index.ts
@@ -34,6 +34,8 @@ export async function setupState() {
     if (!api.sessionManager.session && rootStore.session.isAuthed) {
       // reset session
       rootStore.session.clear()
+    } else if (api.sessionManager.session) {
+      rootStore.session.updateAuthTokens(api.sessionManager.session)
     }
   })