MongoClientSettings.getAuthDatabase

string getAuthDatabase() @safe @nogc nothrow pure const return

Resolves the database to run authentication commands on. (authSource if set, otherwise the URI's database if set, otherwise "admin")