sos-migrate 0.17.1

Import and export for the Save Our Secrets SDK
Documentation
use serde::{Deserialize, Serialize};
use sos_core::SecretId;
use std::collections::HashMap;
use url::Url;

mod export;
mod import;

pub use export::export_authenticator;
pub use import::import_authenticator;

const OTP_AUTH_URLS: &str = "otp_auth.json";

/// URLs for an authenticator folder.
#[derive(Default, Serialize, Deserialize)]
pub struct AuthenticatorUrls {
    /// Collection of `otpauth:` URLs.
    pub otp: HashMap<SecretId, Url>,
}