MongoServicePasswordOptions
Index
Properties
optionalcaseSensitiveUserName
optionalconvertUserIdToMongoObjectId
Should the user collection use _id as string or ObjectId. Default 'true'.
database
Mongo database object.
optionaldateProvider
Function that generate the date for the timestamps.
Default to (date?: Date) => (date ? date.getTime() : Date.now())
.
Type declaration
Parameters
optionaldate: Date
Returns any
optionalidProvider
Function that generate the id for new objects.
Type declaration
Returns string | object
optionaltimestamps
The timestamps for the users collection. Default 'createdAt' and 'updatedAt'.
Type declaration
createdAt: string
updatedAt: string
optionaluserCollectionName
The users collection name. Default 'users'.
Perform case intensitive query for user name. Default 'true'.