2FA methods supported by MongoDB
Adding two-factor authentication is one of the most effective ways to protect your MongoDB account. With TOTP support, you can generate MongoDB verification codes directly in the Authenticator App.
Authenticator app (TOTP)
MongoDB lets you use time-based one-time passwords, so you can generate verification codes in an authenticator app on your device — no network or SMS needed.
MongoDB can deliver a one-time verification code to your email address.
Proprietary app
MongoDB offers its own companion app for approving sign-ins.
SMS
MongoDB can send a one-time verification code to your phone via text message.
Security key (U2F)
MongoDB works with hardware security keys using the U2F/FIDO standard.
MongoDB 2FA — Frequently asked questions
Does MongoDB support an authenticator app?
Yes. MongoDB supports time-based one-time passwords (TOTP), so you can add it to the Authenticator App and generate verification codes right on your device.
Which two-factor authentication methods does MongoDB support?
MongoDB currently supports: Authenticator app (TOTP), Email, Proprietary app, SMS, Security key (U2F).
Is it free to generate MongoDB codes with the Authenticator App?
Yes. The Authenticator App is free to download, and generating MongoDB verification codes does not require an account or sign-up.
This page is for educational purposes only. We are not affiliated with or endorsed by MongoDB. All trademarks and product names are the property of their respective owners and are used solely for identification.