# Biometric Authentication

```swift
BiometridStandard.getInstance().startAuthentication(callback: callback, options: options)
```

| Parameter                           | Description                                  |
| ----------------------------------- | -------------------------------------------- |
| callback: **ProcessCallback**       | Process callback                             |
| options: **AuthenticationOptions?** | Options to customize the authentication view |

## Implementation example

```swift
import UIKit
import BiometridStandardSDK

class ViewController: UIViewController, ProcessCallback {
    
    override func viewDidLoad() {
        super.viewDidLoad()
    }
    
    @IBAction func startAuthenticationBtn(_ sender: Any) {
        BiometridStandard.getInstance().startAuthentication(callback: self)
    }

    func authenticationCallback(status: Bool, error: Errors?) {
        if error != nil {
            print(error?.rawValue)
            return
        }
        print("status", status)
    }
}

```

## Callback params

<table data-header-hidden><thead><tr><th width="274">Parameter</th><th>Description</th></tr></thead><tbody><tr><td>status: <strong>Bool?</strong></td><td>The status of the authentication</td></tr><tr><td>error: <strong>Errors?</strong></td><td>Errors associated enum</td></tr></tbody></table>
