tid-rs

Crates.iotid-rs
lib.rstid-rs
version0.1.1
sourcesrc
created_at2022-08-01 13:11:52.54973
updated_at2022-08-01 14:57:38.278921
descriptionTouchId integration for Rust
homepage
repositoryhttps://github.com/lightsing/tid-rs
max_upload_size
id636765
size24,257
Akase Haruka (lightsing)

documentation

README

tid-rs

TouchId integration for Rust

Usage

async fn touch_id() {
    let mut ctx = LAContext::new();
    if ctx.can_evaluate_policy(LAPolicy::DeviceOwnerAuthenticationWithBiometrics) {
        ctx.set_localized_cancel_title("Use Another Method");
        ctx.evaluate_policy(
            LAPolicy::DeviceOwnerAuthenticationWithBiometrics,
            "Use TouchId to Unlock Rust",
        ).await;
    }
}
Commit count: 9

cargo fmt