Topic: Login failed: Unauthorized
Expected behavior
Actual behavior
I can’t use CLI after installing cli with "npm install -g mdb-cli », i get get "Login failed: Unauthorized » error.
username davidr
Resources (screenshots, code snippets etc.)
mdb login
Sebastian Kaczmarek
staff pro premium answered 2 months ago
Sorry for the inconvenience. We had a little inconsistency in your user data. It should work fine now.
David Joyce commented 1 months ago
I have the same problem. I created an account using my github login
Sebastian Kaczmarek staff pro premium commented 1 months ago
What do you mean by "using my github login"? We don't provide a way to log in via GitHub. Could you please explain?
theomorinokwind
answered 5 days ago
hi, I have the exact same problem, how can I solve it ?
Enter your MDB username theomorinokwind
Enter your MDB password *****************
(node:1066) Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable to '0' makes TLS connections and HTTPS requests insecure by disabling certificate verification.
(Use `node --trace-warnings ...` to show where the warning was created)
Error Login failed: Unauthorized
Sebastian Kaczmarek staff pro premium commented 4 days ago
@theomorinokwind You are using your display name as a username which is not correct. Try using Theo_MORIN instead (which is what you provided during registration)
Answered
- User: Pro
- Premium support: Yes
- Technology: React
- MDB Version: 4.27.0
- Device: macbook pro
- Browser: none
- OS: Mac OsX
- Provided sample code: No
- Provided link: No