Skip to main content

first_totp

Function first_totp 

Source
pub(super) fn first_totp(details: &VaultItemDetails) -> Option<(usize, String)>
Expand description

Reads the item’s first one-time password, with the position of the field it came from. A TOTP_ field can arrive without a secret, so the first one carrying a value wins; any further one stays a custom field, since a cipher has room for only one.