mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-07-20 02:58:23 +00:00
use same timeout as in webauthn 0.3 impl
This commit is contained in:
parent
46183d3cca
commit
3d4b29ff6b
1 changed files with 3 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
|||
use std::str::FromStr;
|
||||
use std::sync::Arc;
|
||||
use std::time::Duration;
|
||||
use once_cell::sync::Lazy;
|
||||
use rocket::serde::json::Json;
|
||||
use rocket::Route;
|
||||
|
@ -34,7 +35,8 @@ pub static WEBAUTHN_2FA_CONFIG: Lazy<Arc<Webauthn>> = Lazy::new(|| {
|
|||
&rp_id,
|
||||
&rp_origin,
|
||||
).expect("Creating WebauthnBuilder failed")
|
||||
.rp_name(&domain);
|
||||
.rp_name(&domain)
|
||||
.timeout(Duration::from_millis(60000));
|
||||
|
||||
Arc::new(webauthn.build().expect("Building Webauthn failed"))
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue