Skip to main content

AccountsRedisOptions

Index

Properties

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

optionalidProvider

idProvider?: () => string

Function that generate the id for new objects. Default to shortid npm package shortid.generate()


Type declaration

    • (): string
    • Returns string

optionalsessionCollectionName

sessionCollectionName?: string

The sessions collection name. Default 'sessions'.

optionaltimestamps

timestamps?: { createdAt: string; updatedAt: string }

The timestamps for the users and sessions collection. Default 'createdAt' and 'updatedAt'.


Type declaration

  • createdAt: string
  • updatedAt: string

optionaluserCollectionName

userCollectionName?: string

The users collection name. Default 'users'.