sos-platform-authenticator 0.17.0

Platform authenticator and keyring suppport for the Save Our Secrets SDK.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use sos_platform_authenticator::local_auth;
fn main() {
    if local_auth::supported() {
        let verified = local_auth::authenticate(Default::default());
        if verified {
            println!("Authorized");
        } else {
            println!("Unauthorized");
        }
    } else {
        println!("Unsupported platform");
    }
}