MongoServiceMagicLinkOptions

@accounts/mongo-magic-linkGlobalsMongoServiceMagicLinkOptions

Hierarchy

  • MongoServiceMagicLinkOptions

Index

Properties

Properties

Optional convertUserIdToMongoObjectId

convertUserIdToMongoObjectId? : boolean

Defined in mongo-magic-link.ts:19

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


database

database: Db

Defined in mongo-magic-link.ts:9

Mongo database object.


Optional dateProvider

dateProvider? : function

Defined in mongo-magic-link.ts:24

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 userCollectionName

userCollectionName? : string

Defined in mongo-magic-link.ts:14

The users collection name. Default 'users'.