pub fn parse_otpauth(uri: &str) -> Result<Stored, String>Expand description
Parses an otpauth://totp/... URI.
Deliberately strict about the scheme and the type, and forgiving about
everything else: an unknown query parameter is ignored, an unreadable
digits falls back to the default rather than failing, and only a missing or
unusable secret is fatal. A URI is pasted from a third party’s export and
half of them are slightly wrong.