|
const valid = await metarhia.metautil.validatePassword(password, hash); |
The plain password must not be transferred to the 3rd-party code.
This code must use node-embedded functions to get hash and compare it with the stored one.
By the way the password must be salted.