Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const hashPassword = (app1, password) => {
const hook = {
type: 'before',
data: { password },
params: { provider: null },
app: {
get (str) {
return app1.get(str);
}
}
};
return auth.hashPassword()(hook)
.then(hook1 => hook1.data.password);
};