feat(chromium): extract passwords from the account-synced store (#637)

Chromium keeps account-synced credentials in a separate "Login Data For Account" DB. Entries carry a Store field because the same credential can legitimately exist in both stores.
This commit is contained in:
slimwang authored and GitHub committed 2026-08-25 11:13:10 +08:00
1 parent 9624e50a4f
commit d2b2955d6c
12 files changed
+245 -16

No files matched your search

+9
View File
@@ -2,12 +2,21 @@ package types
import "time"
// Chromium keeps profile-local credentials in "Login Data" and account-synced ones in
// "Login Data For Account". The same credential may exist in both, so exported entries
// carry their origin instead of being silently merged.
const (
PasswordStoreLocal = "local"
PasswordStoreAccount = "account"
)
// LoginEntry represents a single saved login credential.
type LoginEntry struct {
URL string `json:"url" csv:"url"`
Username string `json:"username" csv:"username"`
Password string `json:"password" csv:"password"`
CreatedAt time.Time `json:"created_at" csv:"created_at"`
Store string `json:"store" csv:"store"`
}
// CookieEntry represents a single browser cookie.