Before a change:
- function returns only one result "true", it does not matter to pass one or four key;
- need pass object in which array in array (double array).
Example:
var username = 'epexa';
var password = 'P5...'; // master password
// object in which the key type public key (active, memo, owner, posting), and the value of the array in the array itself is the public key
var auths = {
posting: [['STM6...']],
};
steem.auth.verify(username, password, auths);
retrun:
true
After the changes:
- if pass more than one key, function will return an object;
- in object no need pass array in array, can just string.
Example:
var username = 'epexa';
var password = 'P5...'; // master password
var auths = {
posting: 'STM6...',
memo: ['STM6...]',
active: [['STM6...']],
};
steem.auth.verify(username, password, auths);
return:
{ posting: true, memo: true, active: true }
But the edits are compatible, can still pass in object array in array!
Posted on Utopian.io - Rewarding Open Source Contributors
Your contribution cannot be approved because it does not follow the Utopian Rules.
Your pull request is not yet merged and CI is failing in it. Only merged pull requests are accepted in Utopian. Please read the rules carefully before submitting a contribution.
If your pull request is merged remove your old contribution before submitting a new contribution so that it is not rejected under the duplicate content rule.
Thanks!
You can contact us on Discord.
[utopian-moderator]
Hey @ms10398, I just gave you a tip for your hard work on moderation. Upvote this comment to support the utopian moderators and increase your future rewards!