Repository navigation
Account and Sync
English · 한국어
The client uses the configured Miroven-API for remote features. With no API configured, it works locally without sign-in. The server must support account deletion and multi-photo attachments; multi-photo support requires 0004_attachments, and the current API requires its full Alembic head, including 0005_subscriptions for account/limit queries.
Account opens a closable loading dialog while its UI chunk loads. Backup and diagnostics prepare independently; their controls become available only when the corresponding module is ready. A slow or failed diagnostics load does not block backup, PIN, or authentication controls. A failed feature offers its own retry inside Account. If the Account UI itself fails to load, the attempt closes with a retry message; reopen Account to try again. Existing editor text is preserved.
Closing during loading or locking the vault cancels that opening attempt; late loading completion does not reopen it. Home profile editing and recovery-code creation remain available without first loading Account. Once feature controls are ready, first backup import/export and diagnostics download can run offline. With a fully installed production Service Worker, Account can also be opened for the first time offline; see PWA and updates. Server authentication, usage lookup, and synchronization still require connectivity.
Request a six-digit code in Account and use the emailed code to sign in. Sessions use HttpOnly cookies, not a browser-JavaScript login token. The server derives ownership from the session and checks the account hint on requests.
Encrypt entries/photos before transfer; do not transmit plaintext content, PINs, or recovery codes. Email authentication does not unlock the vault: another device needs the recovery code. The server still sees email, access/change times, and ciphertext sizes.
New accounts require a supported email domain and cannot use + or . before @;
domain dots are allowed.
Existing exact addresses with those characters retain sign-in and deletion, and aliases
are never rewritten or merged into other accounts. Account shows the server-provided
signup domains and warns when an entered domain is unsupported. Existing accounts can
still sign in and delete their account after domain removal; the warning does not disable
code requests. Policy lookup failures or older APIs retain generic guidance and sign-in.
The API enforces restrictions at code request and user creation, including direct callers.
Code requests never confirm delivery or account existence. Email uses English by default,
Korean for KR domains, and Japanese for JP, independently of the app language.
Account usage includes reserved uploads and retained photo versions. Entry counts include deletion markers. File, total storage, and entry limits come from the server, independently of browser storage. Usage refreshes when Account opens and sync state changes.
Account also displays the effective Free or Pro plan returned by /account/usage, the subscription status (active, trial, past due, canceled, or expired), and the current period end when provided. Scheduled cancellation shows when access ends and the plan changes to Free. The server determines entitlements; canceled Pro can remain available until its period ends, and past-due status alone does not imply a downgrade. Quotas always use the server response, including administrator overrides. Use Refresh plan and usage to check changes while Account stays open; failed requests offer a retry without changing local data. This display does not provide checkout or subscription management.
Subscription support requires server migration 0005_subscriptions. Older usage responses without subscription fields display Free with their returned limits; the existing local-only mode still has no account plan.
Sign out on this device revokes the current session; sign out everywhere revokes all sessions. Neither removes local entries. Other tabs recheck through authentication notifications or focus, while other devices discover revocation on their next API request.
- Export an encrypted backup if needed.
- Choose account/data deletion while signed in and verify the target email address.
- Request a new deletion code. A consumed sign-in code cannot be reused; code requests have a 60-second resend interval.
- Enter the code and the confirmation phrase displayed in the UI. Wrong/expired codes preserve entries and allow retry.
- On server acceptance, all sessions are revoked immediately and the UI displays deletion progress. A worker removes database rows/files; if cleanup fails, access remains blocked and an operator can retry.
Clear the current vault, pending entries, and PIN only if it is bound to this API/account. Preserve vaults bound elsewhere and unbound local entries. Other devices' local copies and exported backups need separate removal. Server backups default to at most seven days; confirm actual operator policy.
Store the deletion-status receipt in this tab's sessionStorage, scoped by API URL. A reload can resume status checks; the receipt is sent only in a header, excluded from URLs/diagnostics, and grants no other API privileges. It expires 30 days after the request. Closing the tab or clearing storage may lose status access but does not stop server cleanup. Acknowledging completion removes the receipt.
If connectivity prevents confirmation of server acceptance, do not automatically delete local records. Recheck sign-in/connectivity or ask the operator about the result. If local cleanup fails after acceptance, server cleanup continues; the UI offers local reset guidance.
While signed out, use local-vault reset and the displayed confirmation phrase. This deletes this origin's IndexedDB entries, photos, keys, PIN, and Outbox, leaving the server, other devices, and exported files intact. The current tab clears its displayed entries and recent searches when the reset completes. Other open tabs on the same origin do the same when they receive the reset notification.
Once a reset commits, pending recent-search updates and legacy search migration from before the reset cannot change the stored list, even in tabs that miss the notification. The same rule applies when account deletion clears the matching local vault.
Reset also removes the stored draft and cancels earlier draft saves, clears, and migrations. A pending write from another tab cannot restore the old draft or erase a new draft written after reset.
Entry saves and edits started before a reset are cancelled if they reach storage after the reset. This includes photos still being prepared for saving.
Before switching accounts, back up, sign out, then explicitly reset the local vault. API/account binding and server ownership checks prevent accidental upload under a changed cookie account. See architecture and security.
- Client development · 클라이언트 개발
- Self-hosting · 자체 호스팅
- PWA, offline use, and updates · PWA·오프라인·업데이트
- Client performance · 클라이언트 성능
- Architecture · 아키텍처
- Cryptographic format · 암호화 형식
- Image processing · 사진 처리
- Security model · 보안 경계
- Product principles · 제품 원칙
- Dependency licenses · 의존성 라이선스
- Account and sync · 계정과 동기화
- Backup and recovery · 백업과 복구
- Entry quotes · 기록 인용
- Profile document · 프로필 문서