AccountsRedisOptions

@accounts/redisGlobalsAccountsRedisOptions

Hierarchy

  • AccountsRedisOptions

Index

Properties

Properties

Optional dateProvider

dateProvider? : function

Defined in types/options.ts:29

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 idProvider

idProvider? : function

Defined in types/options.ts:24

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

Type declaration:

▸ (): string


Optional sessionCollectionName

sessionCollectionName? : string

Defined in types/options.ts:11

The sessions collection name. Default 'sessions'.


Optional timestamps

timestamps? : object

Defined in types/options.ts:16

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

Type declaration:

  • createdAt: string

  • updatedAt: string


Optional userCollectionName

userCollectionName? : string

Defined in types/options.ts:6

The users collection name. Default 'users'.