val configuration = AuthenticationConfiguration.builder .withPin("myPin") .build()
let configuration = Keyless.AuthenticationConfiguration.builder .withPin("myPin") .build()
final configuration =PinAuthConfig( pin:"myPin");try {final result =awaitKeyless.instance.authenticate(configuration);print("Authentication successful");} catch (error) {print("Authentication failed: $error");}
De-enrollment with PIN
To de-enroll your user using the PIN authentication mechanism, specify the dedicated builder parameter:
Note that de-enrolling deletes the user biometrics as well as the PIN. If you just want to remove the PIN authentication mechanism, use the PIN utilities instead.
val configuration =DeEnrollmentConfiguration.builder .withPin("myPin") .build()
let configuration =Keyless.DeEnrollmentConfiguration.builder .withPin("myPin") .build()