mirror of
https://github.com/bitwarden/browser
synced 2026-02-12 22:44:11 +00:00
10 lines
285 B
Rust
10 lines
285 B
Rust
#[napi]
|
|
pub mod passkey_authenticator {
|
|
#[napi]
|
|
pub fn register() -> napi::Result<()> {
|
|
crate::passkey_authenticator_internal::register().map_err(|e| {
|
|
napi::Error::from_reason(format!("Passkey registration failed - Error: {e} - {e:?}"))
|
|
})
|
|
}
|
|
}
|