You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I even get the error on TS end, that userCollectionName is not part of Mongo object:
Although, the above code runs perfectly, I get that error from TS.
I think, in case you don't want to expose userCollectionName in Mongo object of @accounts/mongo, the precedence for it should be:
1.- userCollectionName in options param.
2.- collectionName in options param.
3.- userCollectionName in defaultOptions.
The property
userCollectionName
is not part of theMongo
options in the package@accounts/mongo
.I'm using:
I even get the error on TS end, that
userCollectionName
is not part ofMongo
object:Although, the above code runs perfectly, I get that error from TS.
I think, in case you don't want to expose
userCollectionName
inMongo
object of@accounts/mongo
, the precedence for it should be:1.-
userCollectionName
inoptions
param.2.-
collectionName
inoptions
param.3.-
userCollectionName
indefaultOptions
.Here's the current code:
accounts/packages/database-mongo-password/src/mongo-password.ts
Lines 81 to 85 in ff983b8
My suggestions would be something like:
Thanks in advance.
The text was updated successfully, but these errors were encountered: