AccountsMongoModuleConfig
Hierarchy
- AccountsMongoOptions
- AccountsMongoModuleConfig
Index
Properties
optionalcaseSensitiveUserName
optionalcollectionName
The users collection name. Default 'users'.
optionalconvertSessionIdToMongoObjectId
Should the session collection use _id as string or ObjectId. Default 'true'.
optionalconvertUserIdToMongoObjectId
Should the user collection use _id as string or ObjectId. Default 'true'.
optionaldateProvider
Function that generate the date for the timestamps.
Default to (date?: Date) => (date ? date.getTime() : Date.now())
.
Type declaration
Function that generate the date for the timestamps. Default to
(date?: Date) => (date ? date.getTime() : Date.now())
.Parameters
optionaldate: Date
Returns any
optionaldbConn
optionalidProvider
Function that generate the id for new objects.
Type declaration
Function that generate the id for new objects.
Returns string | object
optionalidSessionProvider
Function that generates the _id for new Session objects. If 'undefined' then 'convertSessionIdToMongoObjectId' must be 'true'. Default 'undefined'
Type declaration
Function that generates the _id for new Session objects. If 'undefined' then 'convertSessionIdToMongoObjectId' must be 'true'. Default 'undefined'
Returns string | object
optionalsessionCollectionName
The sessions collection name. Default 'sessions'.
optionalstorage
Type declaration
optionalname?: string
optionaluri?: string
optionaltimestamps
The timestamps for the users and sessions collection. Default 'createdAt' and 'updatedAt'.
Type declaration
createdAt: string
updatedAt: string
Perform case intensitive query for user name. Default 'true'.