MS Authenticator App

Authenticator app for MongoDB

mongodb.comDeveloper Supported

How to set up or enable two-factor authentication (2FA) for MongoDB

To keep your MongoDB account secure, enable two-factor authentication (2FA). This page explains how MongoDB 2FA works, which methods MongoDB supports, and how to protect and recover your account. The most secure option is an authenticator app: store your MongoDB 2FA codes in MS Authenticator App and generate a fresh 6-digit code every time you sign in.

2FA methods MongoDB supports

  • Authenticator app (TOTP)
  • Email code
  • Proprietary app
  • SMS text message
  • Security key (U2F / WebAuthn)

An authenticator app (TOTP) is the sweet spot: free, offline, and not vulnerable to SIM-swap attacks like SMS.

How to enable or set up 2FA for MongoDB

MongoDB supports two-factor authentication to add an extra layer of protection. Follow our step-by-step MongoDB guide, or read the official MongoDB documentation ↗ for the exact, up-to-date steps.

How to recover your MongoDB account

If you've lost access to your MongoDB account, use the backup codes you saved when enabling 2FA, or contact MongoDB support to regain access. Once you're back in, re-add the account to MS Authenticator App.

Topics covered

  • mongodb 2fa
  • mongodb two-factor authentication
  • mongodb 2fa setup
  • mongodb authenticator app
  • how to enable 2fa on mongodb
  • mongodb sign in with 2fa

Other Developer services

Data: 2fa.directory

Disclaimer

The information on this page is provided for educational purposes only, to help you secure your accounts.

Novaz is not affiliated, associated, authorized, endorsed by, or in any way officially connected with MongoDB, or any of its subsidiaries or affiliates.

All product names, logos, trademarks, and registered trademarks are the property of their respective owners and are used here for identification and reference only, without implying any association or endorsement.