I have created mongodb user with command
use admin db.createUser( { user: \"superuser\", pwd: \"12345678\", roles: [ \"root\" ] } )
try this
const mongooseConnectionString = 'mongodb://superuser:12345678@ localhost/twitter-mongo?authSource=admin'