Authenticate with PIN
The initial PIN for authentication is set when registering a device.
Authenticate
- iOS (Swift)
- Android (Java)
trustFactorClient.authenticate(pin: <string>) { result, correlationId in
switch result {
case .failure(let error):
// handle error
case .success(_):
// handle success
}
}
trustFactorClient.authenticate(pin: <string>, new Result<TFAuthenticationResponse, Error>() {
@Override
public void onSuccess(TFAuthenticationResponse value, String correlationId) {
// handle success
}
@Override
public void onFailure(Error error, String correlationId) {
// handle error
}
});
Update
- iOS (Swift)
- Android (Java)
trustFactorClient.updateAuthenticationPIN(old: <old>, new: <new>) { result, correlationId in
switch result {
case .failure(let error):
// handle error
case .success(_):
// handle success
}
}
trustFactorClient.updateAuthenticationPIN(old: <String>, new: <String>, new Result<Boolean, Error>() {
@Override
public void onSuccess(_) {
// handle success
}
@Override
public void onFailure(Error error) {
// handle error
}
});