logic/auth.js
// Returns an object with the hashed credentials inside.
Returns an object with the hashed credentials inside.
Returns an object with the hashed credentials inside .
function hashCredentials(username, password) {
    const hash = bcrypt.hashSync(password, saltRounds);
    return { password: hash, username, plainTextPassword: password };
}
function hashCredentials ( username , password ) { const hash = bcrypt . hashSync ( password , saltRounds ) ; return { password : hash , username , plainTextPassword : password } ; }
Returns an object with the hashed credentials inside.
Returns an object with the hashed credentials inside .