Skip to content

Commit 8ce8dc3

Browse files
committed
Cloud: clear cached settings if already logged-out at startup
1 parent af2e9ed commit 8ce8dc3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/cloud/src/SettingsService.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ export class SettingsService {
3939
public initialize(): void {
4040
this.loadCachedSettings()
4141

42+
// Clear cached settings if we have missed a log out.
43+
if (this.authService.getState() == "logged-out" && this.settings) {
44+
this.removeSettings()
45+
}
46+
4247
this.authService.on("active-session", () => {
4348
this.timer.start()
4449
})

0 commit comments

Comments
 (0)