Authentication
During the authentication, the user's face is processed and, if the authentication is successful, the token stored during the enrollment is returned.
You can see the KeylessSDK as a blackbox where, during the enrollment, you store something which will be retrieved, if the user is who he claims to be, during the authentication.
Android
iOS
1
Keyless.authenticate(
2
activity = yourActivity,
3
onCompletion = { result ->
4
when(result) {
5
is Success -> Log.D("KeylessSDK", "Authentication successful")
6
is Failure -> Log.D("KeylessSDK", "Authentication failed")
7
}
8
})
Copied!
1
Keyless.authenticate { result in
2
switch result {
3
case .success(let token):
4
print("Authentication finished successfully: \(token)")
5
case .failure(let error):
6
print("Authentication finished with error: \(error.message)")
7
}
8
}
Copied!
Last modified 1mo ago
Export as PDF
Copy link