@accounts/mongo-password

@accounts/mongo-passwordGlobals

Index

Classes

Interfaces

Functions

Object literals

Functions

Const toMongoID

toMongoID(objectId: string | ObjectID): ObjectId‹›

Defined in utils.ts:3

Parameters:

NameType
objectIdstring | ObjectID

Returns: ObjectId‹›

Object literals

Const defaultOptions

defaultOptions: object

Defined in mongo-password.ts:61

caseSensitiveUserName

caseSensitiveUserName: boolean = true

Defined in mongo-password.ts:68

convertUserIdToMongoObjectId

convertUserIdToMongoObjectId: boolean = true

Defined in mongo-password.ts:67

userCollectionName

userCollectionName: string = "users"

Defined in mongo-password.ts:62

dateProvider

dateProvider(date?: Date): number

Defined in mongo-password.ts:69

Parameters:

NameType
date?Date

Returns: number

timestamps: object

Defined in mongo-password.ts:63

  • createdAt: string = "createdAt"

  • updatedAt: string = "updatedAt"