# Authentication failed MacOS

**URL:** <https://community.forestadmin.com/t/authentication-failed-macos/1103>\
**Category:** Help me!\
**Tags:** setup\
**Created:** [October 9, 2020, 1:17am UTC](https://community.forestadmin.com/t/authentication-failed-macos/1103 "2020-10-09T01:17:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Uzair\_Raza](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/uzair_raza/32/908_2.png) [@Uzair\_Raza](https://community.forestadmin.com/u/Uzair_Raza)\
**Post date:** [October 9, 2020, 1:17am UTC](https://community.forestadmin.com/t/authentication-failed-macos/1103/1 "2020-10-09T01:17:03Z")

</div>

I am new to forestadmin. I create an account and try to connect to by creating new instance of mongodb.

I give all credentials and try to connect through my terminal using npm. It should be connect with command given in npm section. but it failed with error:

> ✖ Connecting to your database  
> Cannot connect to the database due to the following error:  
> MongoNetworkError: Authentication failed.

npm : 6.14.8  
node: v12.18.3  
lumber: 3.7.2

---

<div class="post-metadata">

**Author:** ![arnaud](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/arnaud/32/32_2.png) [@arnaud](https://community.forestadmin.com/u/arnaud)\
**Post date:** [October 9, 2020, 7:02am UTC](https://community.forestadmin.com/t/authentication-failed-macos/1103/2 "2020-10-09T07:02:39Z")

</div>

Hi @Uzair_Raza,  
Welcome to the Forest Admin community!

Are you confident that your MongoDB credentials are the right ones?  
Can you connect directly to your database with those credentials?

Another random question comes to my mind.  
Do your username and password include any non alphanumeric characters?

Thanks for your answer.
