Authentication by using user finger print iOS (Swift)

You can authenticate like this way:

func authenticateUser() {
let context = LAContext()
var error: NSError? if context.canEvaluatePolicy(.deviceOwnerAuthenticationWithBiometrics, error: &error) {
let reason = "Identify yourself!" context.evaluatePolicy(.deviceOwnerAuthenticationWithBiometrics, localizedReason: reason) {
[unowned self] success, authenticationError in DispatchQueue.main.async {
if success {
let ac = UIAlertController(title: "Login with…