Skip to main content

Module migration

Module migration 

Source
Expand description

One-way import of legacy Flet JSON and OS-protected sessions.

Structs§

LegacyAccount 🔒
An account as the legacy Flet app saved it, including its protected session.
MigrationSummary
What a legacy import copied.

Enums§

MigrationError
Why a legacy import failed. Sessions stored by a failed import are rolled back.

Functions§

migrate_legacy
Imports legacy settings, accounts, and sessions into current storage.
migrate_with 🔒
Runs the import with an injectable session resolver, for tests.
resolve_legacy_secret 🔒
Decrypts the account’s DPAPI-protected session, if it has one.
rollback_credentials 🔒
Restores the previous session for each account written by a failed import, newest first.