Track rotated auth tokens

This commit is contained in:
Paul Frazee 2022-11-21 16:17:40 -06:00
parent ed146a582c
commit b2dba9a15b
2 changed files with 16 additions and 1 deletions

View file

@ -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)
}
})