Face Authentication
Explains how to integrate a face authentication
Implementation
Example to Start a Face Authentication
import AuthenteqFlow
class ExampleViewController: UIViewController {
func faceAuthentication() {
let faceAuthenticationParams = FaceAuthenticationParams(
clientId: "< YOUR CLIENT ID >",
clientSecret: "< YOUR CLIENT SECRET >",
verificationId: verificationId
)
let viewController = AuthenteqFlow.instance.faceAuthenticationViewController(
with: faceAuthenticationParams,
delegate: self
)
viewController.modalPresentationStyle = .fullScreen
present(viewController, animated: true)
}
}
extension ExampleViewController: AuthenteqFaceAuthenticationDelegate {
func authenteqDidFinishFaceAuthentication(with code: String) {
presentedViewController?.dismiss(animated: true)
// Check face authentication result with the CODE provided
}
func authenteqDidFailFaceAuthentication(with error: AuthenteqFlowError) {
// Handle error
presentedViewController?.dismiss(animated: true)
}
}Get Face Authentication Result
Obtain the result of a face authentication
Query Parameters
Name
Type
Description
Headers
Name
Type
Description
Last updated
Was this helpful?