diff --git a/common/src/services/state.service.ts b/common/src/services/state.service.ts index 9d74af41..3ca9d9c7 100644 --- a/common/src/services/state.service.ts +++ b/common/src/services/state.service.ts @@ -52,6 +52,12 @@ export class StateService implements StateServiceAbstraction { async loadStateFromDisk() { if (await this.getActiveUserIdFromStorage() != null) { const diskState = await this.storageService.get('state', await this.defaultOnDiskOptions()); + for (const userId in diskState?.accounts) { + if (userId == null) { + continue; + } + diskState.accounts[userId].accessToken = null; + } this.state = diskState; await this.storageService.save('state', diskState, await this.defaultOnDiskMemoryOptions()); }