summaryrefslogtreecommitdiff
path: root/packages/frontend/src/store.ts
diff options
context:
space:
mode:
authorsyuilo <4439005+syuilo@users.noreply.github.com>2025-03-13 22:12:23 +0900
committersyuilo <4439005+syuilo@users.noreply.github.com>2025-03-13 22:12:23 +0900
commit8c9ec5827fa2040c8d705d2a01329da593d19fa3 (patch)
tree59f90cc0aeb39f7366c24aea20441d17508997dd /packages/frontend/src/store.ts
parentenhance(frontend): improve preferences (diff)
downloadsharkey-8c9ec5827fa2040c8d705d2a01329da593d19fa3.tar.gz
sharkey-8c9ec5827fa2040c8d705d2a01329da593d19fa3.tar.bz2
sharkey-8c9ec5827fa2040c8d705d2a01329da593d19fa3.zip
enhance(frontend): improve accounts management
Diffstat (limited to 'packages/frontend/src/store.ts')
-rw-r--r--packages/frontend/src/store.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/frontend/src/store.ts b/packages/frontend/src/store.ts
index 9a61e63d0e..ffbd8d10ef 100644
--- a/packages/frontend/src/store.ts
+++ b/packages/frontend/src/store.ts
@@ -104,6 +104,10 @@ export const store = markRaw(new Storage('base', {
where: 'deviceAccount',
default: {} as Record<string, string>, // plugin id, token
},
+ accountTokens: {
+ where: 'device',
+ default: {} as Record<string, string>, // host/userId, token
+ },
enablePreferencesAutoCloudBackup: {
where: 'device',