Sometimes returns an object of type ProtectedValue, sometime is a string. This is pushing us to implement the readout of that field in the following way:
const passwordField = entry.fields.get('Password');
let password = '';
if (passwordField instanceof kdbxweb.ProtectedValue) {
password = (passwordField as kdbxweb.ProtectedValue).getText();
} else {
password = passwordField;
}
Is there a reason for this behavior or is there a better way to prevent/fetch this?
We are experiencing some inconsistent behavior with the Password field. Following code:
Sometimes returns an object of type ProtectedValue, sometime is a string. This is pushing us to implement the readout of that field in the following way:
Is there a reason for this behavior or is there a better way to prevent/fetch this?
Thanks