Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/lightsing/tid-rs
- Owner: lightsing
- License: mit
- Created: 2022-08-01T12:20:10.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-08-01T14:56:56.000Z (over 2 years ago)
- Last Synced: 2024-11-17T08:54:09.205Z (about 2 months ago)
- Language: Rust
- Size: 10.7 KB
- Stars: 2
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
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;
}
}
```