mirror of
https://github.com/narrrl/proton-sdk-rs.git
synced 2026-11-03 16:41:26 +01:00
`AccountClient::key_passphrases` is now public, and `AccountClient::with_key_passphrases` / `ProtonDriveClient::with_key_passphrases` build a client from the per-key passphrases alone. A client that persists a session can store those instead of the mailbox password, which on a single-password account is the login password itself. `ProtonApiSession::second_factor_methods` exposes the login's 2FA bitmask (TOTP, FIDO2), so a client without WebAuthn can tell an account that only has a security key apart from a wrong code.