mirror of
https://github.com/bitwarden/browser
synced 2025-12-13 06:43:35 +00:00
[PM-9126] COM Object Registration (#13278)
* PM-9126: Initial scaffolding for com object registration * PM-9126: Clean Up PACOMObject trait and impl * PM-9126: Add unsafe tests * PM-9126: Clean up registration PR with a working CoRegisterClassObject call * PM-9126: Add AddAuthenticator fn call * PM-9126: Load AddAuthenticator fn call dynamically * PM-9126: Add AddAuthenticator experiments * PR-9126: add brackets around guids * PM-9126: clean up part 1 * PM-9126: Cleanup changes * Only call the register function if on Windows * PM-9126: Block two generated types that create issues for the i686-pc-windows-msvc target * PM-9126: Refine bindings file * PM-9126: Address PR comments part 1 * PM-9126: Address PR comments part 2 * PM-9126: Return result in napi layer * PM-9126: Propogate error from add authenticator call * PM-9126: Change for version update
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#[macro_use]
|
||||
extern crate napi_derive;
|
||||
|
||||
mod passkey_authenticator_internal;
|
||||
mod registry;
|
||||
|
||||
#[napi]
|
||||
@@ -796,3 +797,13 @@ pub mod crypto {
|
||||
.map(Buffer::from)
|
||||
}
|
||||
}
|
||||
|
||||
#[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:?}"))
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user