Forum Xamarin.Forms

Fingerprint authentication from second login

User_101User_101 Member ✭✭✭

I want to implement a login screen which accepts username,password.

If user wants to use fingerprint auth from next login(and if available), fingerprint authentication should happen. I am able to implement fingerprint auth, but not sure how to do it from second login.

What should be done here? Use dependency service?

Answers

  • GraverobberGraverobber Member ✭✭✭

    Can't you just store the information that you were logged in once into the apps preferences?
    Like:

    Xamarin.Essentials.Preferences.Set("LoggedInOnce",true);

    Then when coming onto the login screen again you check if the value is set and you show the Fingerprint:

    if(Xamarin.Essentials.Preferences.Get("LoggedInOnce",false))
    {
        ShowFingerPrint();
    }
    

    Or did I misunderstood something?

Sign In or Register to comment.