MongoServicePasswordOptions

@accounts/mongo-passwordGlobalsMongoServicePasswordOptions

Hierarchy

  • MongoServicePasswordOptions

Index

Properties

Properties

Optional caseSensitiveUserName

caseSensitiveUserName? : boolean

Defined in mongo-password.ts:49

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


Optional convertUserIdToMongoObjectId

convertUserIdToMongoObjectId? : boolean

Defined in mongo-password.ts:44

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


database

database: Db

Defined in mongo-password.ts:26

Mongo database object.


Optional dateProvider

dateProvider? : function

Defined in mongo-password.ts:58

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

Type declaration:

▸ (date?: Date): any

Parameters:

NameType
date?Date

Optional idProvider

idProvider? : function

Defined in mongo-password.ts:53

Function that generate the id for new objects.

Type declaration:

▸ (): string | object


Optional timestamps

timestamps? : object

Defined in mongo-password.ts:36

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

Type declaration:

  • createdAt: string

  • updatedAt: string


Optional userCollectionName

userCollectionName? : string

Defined in mongo-password.ts:31

The users collection name. Default 'users'.