AccountsRedisOptions
Index
Properties
optionaldateProvider
Type declaration
Parameters
optionaldate: Date
Returns any
optionalidProvider
Function that generate the id for new objects.
Default to shortid npm package shortid.generate()
Type declaration
Returns string
optionalsessionCollectionName
The sessions collection name. Default 'sessions'.
optionaltimestamps
The timestamps for the users and sessions collection. Default 'createdAt' and 'updatedAt'.
Type declaration
createdAt: string
updatedAt: string
optionaluserCollectionName
The users collection name. Default 'users'.
Function that generate the date for the timestamps. Default to
(date?: Date) => (date ? date.getTime() : Date.now())
.