Function authenticate

Source
pub fn authenticate(_options: AuthenticateOptions) -> bool
Available on Linux only.
Expand description

Authenticate using the platform authenticator.

Examples found in repository?
examples/local_auth.rs (line 4)
2fn main() {
3    if local_auth::supported() {
4        let verified = local_auth::authenticate(Default::default());
5        if verified {
6            println!("Authorized");
7        } else {
8            println!("Unauthorized");
9        }
10    } else {
11        println!("Unsupported platform");
12    }
13}