Nodemail with Zoho returns "535 Authentication Failed"

Nodemail with Zoho returns "535 Authentication Failed"

I'm trying to send an email from nodemail to a gmail account through zoho. I've done this by using the following settings for the transport: 

nodemailer.createTransport({
        host: "smtp.zoho.com",
        port: 465,
        secure: true,
        auth: {
            user: "*Email of my account on Zoho*",
            pass: "*App generated password from zoho*"
        }

I have no clue why it fails to authenticate the user with the credentials given.