@accounts/mongo

@accounts/mongoGlobals

Index

Classes

Interfaces

Functions

Object literals

Functions

Const toMongoID

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

Defined in mongo.ts:13

Parameters:

NameType
objectIdstring | ObjectID

Returns: ObjectId‹›

Object literals

Const defaultOptions

defaultOptions: object

Defined in mongo.ts:20

caseSensitiveUserName

caseSensitiveUserName: boolean = true

Defined in mongo.ts:29

collectionName

collectionName: string = "users"

Defined in mongo.ts:21

convertSessionIdToMongoObjectId

convertSessionIdToMongoObjectId: boolean = true

Defined in mongo.ts:28

convertUserIdToMongoObjectId

convertUserIdToMongoObjectId: boolean = true

Defined in mongo.ts:27

sessionCollectionName

sessionCollectionName: string = "sessions"

Defined in mongo.ts:22

dateProvider

dateProvider(date?: Date): number

Defined in mongo.ts:30

Parameters:

NameType
date?Date

Returns: number

timestamps: object

Defined in mongo.ts:23

  • createdAt: string = "createdAt"

  • updatedAt: string = "updatedAt"