1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#[cfg(not(any(target_os = "windows")))]
mod mozilla;
#[cfg(not(any(target_os = "windows")))]
use mozilla::get_authenticator_backend;
#[cfg(target_os = "windows")]
mod win10;
#[cfg(target_os = "windows")]
use win10::get_authenticator_backend;
use webauthn_authenticator_rs::{AuthenticatorBackend, WebauthnAuthenticator};
pub(crate) fn get_authenticator() -> WebauthnAuthenticator<impl AuthenticatorBackend> {
WebauthnAuthenticator::new(get_authenticator_backend())
}