about summary refs log tree commit diff
path: root/src/state/index.ts
diff options
context:
space:
mode:
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)
     }
   })