From 8ce8dc38265e9f48375dac8a10d31d673029e6b1 Mon Sep 17 00:00:00 2001 From: John Richmond <5629+jr@users.noreply.github.com> Date: Mon, 2 Jun 2025 14:47:43 -0700 Subject: [PATCH] Cloud: clear cached settings if already logged-out at startup --- packages/cloud/src/SettingsService.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/cloud/src/SettingsService.ts b/packages/cloud/src/SettingsService.ts index 516654e19d..d849cc03ae 100644 --- a/packages/cloud/src/SettingsService.ts +++ b/packages/cloud/src/SettingsService.ts @@ -39,6 +39,11 @@ export class SettingsService { public initialize(): void { this.loadCachedSettings() + // Clear cached settings if we have missed a log out. + if (this.authService.getState() == "logged-out" && this.settings) { + this.removeSettings() + } + this.authService.on("active-session", () => { this.timer.start() })