I've created to intense of mongo one has the default collection name user the other drivers and when a user is created with drivers it ends up creating in user collection.
I've dug into to the model package and It seems like in the file node_modules/@accounts/mongo/lib/mongo.js we need to pass a key of userCollectionName with the collection name to
this.servicePassword = new mongo_password_1.MongoServicePassword({ ...this.options, userCollectionName: this.options.collectionName, database: this.db });
this.serviceMagicLink = new mongo_magic_link_1.MongoServiceMagicLink({
...this.options,
userCollectionName: this.options.collectionName,
database: this.db,
});
Bug report
Describe the bug
I've created to intense of mongo one has the default collection name
user
the otherdrivers
and when a user is created withdrivers
it ends up creating inuser
collection.To Reproduce
Expected behavior
It should create the users in the given collection name
Screenshots
Nop
System information
Additional context
I've dug into to the model package and It seems like in the file
node_modules/@accounts/mongo/lib/mongo.js
we need to pass a key ofuserCollectionName
with the collection name toOnce i added them they are working fine