|
@ -28,7 +28,7 @@ use webauthn_rs_proto::{ |
|
|
RequestAuthenticationExtensions, UserVerificationPolicy, |
|
|
RequestAuthenticationExtensions, UserVerificationPolicy, |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
pub static WEBAUTHN_2FA_CONFIG: Lazy<Arc<Webauthn>> = Lazy::new(|| { |
|
|
pub static WEBAUTHN_2FA_CONFIG: LazyLock<Arc<Webauthn>> = LazyLock::new(|| { |
|
|
let domain = CONFIG.domain(); |
|
|
let domain = CONFIG.domain(); |
|
|
let domain_origin = CONFIG.domain_origin(); |
|
|
let domain_origin = CONFIG.domain_origin(); |
|
|
let rp_id = Url::parse(&domain).map(|u| u.domain().map(str::to_owned)).ok().flatten().unwrap_or_default(); |
|
|
let rp_id = Url::parse(&domain).map(|u| u.domain().map(str::to_owned)).ok().flatten().unwrap_or_default(); |
|
|