Identification
Explains how to start an identity verification
Implementation
Example to Start an Identification
import AuthenteqFlow
class ExampleViewController: UIViewController {
func identification() {
let identificationParams = IdentificationParams(
clientId: "<YOUR CLIENT ID>",
clientSecret: "<YOUR CLIENT SECRET>",
flowId: "<flow ID>" // optional
)
let viewController = AuthenteqFlow.instance.identificationViewController(
with: identificationParams,
delegate: self
)
viewController.modalPresentationStyle = .fullScreen
present(viewController, animated: true)
}
}
extension ExampleViewController: AuthenteqIdentificationDelegate {
func authenteqDidFinishIdentification(with result: IdentificationResult) {
// Handle result
presentedViewController?.dismiss(animated: true)
}
func authenteqDidFailIdentification(with error: AuthenteqFlowError) {
// Handle error
presentedViewController?.dismiss(animated: true)
}
}
Start an Identification providing authentication Token
Last updated
Was this helpful?