Skip to content

Instantly share code, notes, and snippets.

@andreas-nesheim
Created May 7, 2022 16:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andreas-nesheim/c20ac170f5fbdeec8bab9e6923b9b1c1 to your computer and use it in GitHub Desktop.
Save andreas-nesheim/c20ac170f5fbdeec8bab9e6923b9b1c1 to your computer and use it in GitHub Desktop.
var request = new AuthenticationRequestConfiguration("Prove you have fingers!", "Because without it you can't have access");
var result = await CrossFingerprint.Current.AuthenticateAsync(request);
if (result.Authenticated)
{
await DisplayAlert("Authenticated!", "Access granted", "Cool beans");
}
else
{
await DisplayAlert("Not authenticated!", "Access denied", "aww");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment