user.fetchUser().then(rows => { console.log(rows); var email = rows[0].email; var passw = rows[0].pass; console.log("email--",email); console.log("passw--",passw); }).catch(err => { console.log(err) })