AccountsMongoOptions

@accounts/mongoGlobalsAccountsMongoOptions

Hierarchy

  • AccountsMongoOptions

Index

Properties

Properties

Optional caseSensitiveUserName

caseSensitiveUserName? : boolean

Defined in types/index.ts:34

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


Optional collectionName

collectionName? : string

Defined in types/index.ts:6

The users collection name. Default 'users'.


Optional convertSessionIdToMongoObjectId

convertSessionIdToMongoObjectId? : boolean

Defined in types/index.ts:29

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


Optional convertUserIdToMongoObjectId

convertUserIdToMongoObjectId? : boolean

Defined in types/index.ts:24

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


Optional dateProvider

dateProvider? : function

Defined in types/index.ts:43

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 types/index.ts:38

Function that generate the id for new objects.

Type declaration:

▸ (): string | object


Optional sessionCollectionName

sessionCollectionName? : string

Defined in types/index.ts:11

The sessions collection name. Default 'sessions'.


Optional timestamps

timestamps? : object

Defined in types/index.ts:16

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

Type declaration:

  • createdAt: string

  • updatedAt: string