diff options
author | Paul Frazee <pfrazee@gmail.com> | 2022-11-21 16:17:40 -0600 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2022-11-21 16:17:40 -0600 |
commit | b2dba9a15b0b27c9221808ff037090c2b4c2d500 (patch) | |
tree | 66cafb354e0863879023de55ca8a7e472708f465 /src/state/index.ts | |
parent | ed146a582c140b9a472298390dafbc07bd06cf60 (diff) | |
download | voidsky-b2dba9a15b0b27c9221808ff037090c2b4c2d500.tar.zst |
Track rotated auth tokens
Diffstat (limited to 'src/state/index.ts')
-rw-r--r-- | src/state/index.ts | 2 |
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) } }) |