Skip to content

Commit

Permalink
Clear AccessToken during settings migration
Browse files Browse the repository at this point in the history
  • Loading branch information
tfedor committed Aug 24, 2024
1 parent 85c1ed1 commit 2d17886
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/js/Core/Update/SettingsMigration.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import Version from "@Core/Version";
import {SyncedStorage} from "@Core/Storage/SyncedStorage";
import {SettingsStore} from "@Options/Data/Settings";
import AccessToken from "@Background/Modules/IsThereAnyDeal/AccessToken";

export default class SettingsMigration {

Expand Down Expand Up @@ -98,6 +99,7 @@ export default class SettingsMigration {
await SettingsStore.set("itad_sync_wishlist", (await storage.get("itad_import_wishlist") ?? true));
await storage.remove("itad_import_library");
await storage.remove("itad_import_wishlist");
await AccessToken.clear(); // new scopes are required
}
}
}

0 comments on commit 2d17886

Please sign in to comment.