Skip to main content

MongoServicePasswordOptions

Index

Properties

optionalcaseSensitiveUserName

caseSensitiveUserName?: boolean

Perform case intensitive query for user name. Default 'true'.

optionalconvertUserIdToMongoObjectId

convertUserIdToMongoObjectId?: boolean

Should the user collection use _id as string or ObjectId. Default 'true'.

database

database: Db

Mongo database object.

optionaldateProvider

dateProvider?: (date?: Date) => any

Function that generate the date for the timestamps. Default to (date?: Date) => (date ? date.getTime() : Date.now()).


Type declaration

    • (date?: Date): any
    • Parameters

      • optionaldate: Date

      Returns any

optionalidProvider

idProvider?: () => string | object

Function that generate the id for new objects.


Type declaration

    • (): string | object
    • Returns string | object

optionaltimestamps

timestamps?: { createdAt: string; updatedAt: string }

The timestamps for the users collection. Default 'createdAt' and 'updatedAt'.


Type declaration

  • createdAt: string
  • updatedAt: string

optionaluserCollectionName

userCollectionName?: string

The users collection name. Default 'users'.