Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lightsing/tid-rs

TouchId integration for Rust
https://github.com/lightsing/tid-rs

Last synced: about 1 month ago
JSON representation

TouchId integration for Rust

Awesome Lists containing this project

README

        

# tid-rs

TouchId integration for Rust

## Usage

```rust
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;
}
}
```