Skip to main content

MongoServiceMagicLinkOptions

Index

Properties

optionalconvertUserIdToMongoObjectId

convertUserIdToMongoObjectId?: boolean

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

database

database: Db

Mongo database object.

optionaldateProvider

dateProvider?: (date?: Date) => any

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


Type declaration

    • (date?: Date): any
    • Parameters

      • optionaldate: Date

      Returns any

optionaluserCollectionName

userCollectionName?: string

The users collection name. Default 'users'.