Files
ios/BitwardenShared/Core/Auth/Models/Response/UserDecryptionOptions.swift

18 lines
619 B
Swift

/// API response model for a user's decryption options.
///
struct UserDecryptionOptions: Codable, Equatable, Hashable {
// MARK: Properties
/// Whether the current user has a master password that can be used to decrypt their vault.
var hasMasterPassword: Bool
/// The user's master password unlock info.
var masterPasswordUnlock: MasterPasswordUnlockResponseModel?
/// Details of the user's key connector setup.
let keyConnectorOption: KeyConnectorUserDecryptionOption?
/// Details of the user's trust device setup.
let trustedDeviceOption: TrustedDeviceUserDecryptionOption?
}