Refine vault defaults and account settings

This commit is contained in:
2026-10-13 14:20:17 +09:00
parent 8a8df417aa
commit 50e54bc4c5
10 changed files with 351 additions and 75 deletions

View File

@@ -72,6 +72,11 @@ export async function bootstrap() {
device.value = s.device;
csrfToken.value = s.csrfToken;
sessionExpiresAt.value = s.expiresAt;
// An open site participates in discovery, including sessions that opted out in older UI.
if (!s.device.discoverable) {
await api('/device/me', 'PATCH', { discoverable: true });
device.value = { ...s.device, discoverable: true };
}
};
if (navigator.locks) await navigator.locks.request('hop-session-bootstrap', init);
else await init();