MongoError: auth failed

I am trying to connect to mongodb from my web application using Mongooose. However, I get an MongoError: auth failed from mongo when I specify the »