This version of the documentation is archived and no longer supported. To upgrade your 6.0 deployment, see the MongoDB 7.0 upgrade procedures.
getnonceDeprecated since version 4.0.
Client libraries use
getnonceto generate a one-time password for authentication.Applications should not invoke
getnoncedirectly.This command will be removed in a future release.
Behavior
Client Disconnection
If the client that issued getnonce disconnects before the operation
completes, MongoDB marks getnonce for termination using
killOp.