From 5fbd71687a2f364672b2d2c11e180c0a30f2c9f5 Mon Sep 17 00:00:00 2001 From: zUnixorn <77864446+zUnixorn@users.noreply.github.com> Date: Sat, 5 Jul 2025 14:03:09 +0200 Subject: [PATCH] Update src/api/core/two_factor/webauthn.rs Co-authored-by: Daniel --- src/api/core/two_factor/webauthn.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/core/two_factor/webauthn.rs b/src/api/core/two_factor/webauthn.rs index 73f67638..17a0bad5 100644 --- a/src/api/core/two_factor/webauthn.rs +++ b/src/api/core/two_factor/webauthn.rs @@ -28,7 +28,7 @@ use webauthn_rs_proto::{ RequestAuthenticationExtensions, UserVerificationPolicy, }; -pub static WEBAUTHN_2FA_CONFIG: Lazy> = Lazy::new(|| { +pub static WEBAUTHN_2FA_CONFIG: LazyLock> = LazyLock::new(|| { let domain = CONFIG.domain(); 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();