@accounts/mongo-sessions

@accounts/mongo-sessionsGlobals

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-sessions.ts:39

convertSessionIdToMongoObjectId

convertSessionIdToMongoObjectId: boolean = true

Defined in mongo-sessions.ts:45

sessionCollectionName

sessionCollectionName: string = "sessions"

Defined in mongo-sessions.ts:40

dateProvider

dateProvider(date?: Date): number

Defined in mongo-sessions.ts:46

Parameters:

NameType
date?Date

Returns: number

timestamps: object

Defined in mongo-sessions.ts:41

  • createdAt: string = "createdAt"

  • updatedAt: string = "updatedAt"