sos_migrate/authenticator/
mod.rs

1use serde::{Deserialize, Serialize};
2use sos_core::SecretId;
3use std::collections::HashMap;
4use url::Url;
5
6mod export;
7mod import;
8
9pub use export::export_authenticator;
10pub use import::import_authenticator;
11
12const OTP_AUTH_URLS: &str = "otp_auth.json";
13
14/// URLs for an authenticator folder.
15#[derive(Default, Serialize, Deserialize)]
16pub struct AuthenticatorUrls {
17    /// Collection of `otpauth:` URLs.
18    pub otp: HashMap<SecretId, Url>,
19}