RedisSessionStoreOptions
Extends
Section titled “Extends”Properties
Section titled “Properties”clock?
Section titled “clock?”
readonlyoptionalclock?:Clock
Inherited from
Section titled “Inherited from”epochTtl?
Section titled “epochTtl?”
readonlyoptionalepochTtl?:Duration
How long an epoch outlives the last write to it. Must exceed the longest
session lifetime (remember-me, 30 d by default). Default 90 d. If it ever
lapses, the user’s sessions fail closed (they are signed out), never open.
The core’s device tokens and the two-factor plugin’s trusted devices are
fenced by the epoch alone, so createAuth also refuses a
throttle.lockout.deviceMaxAge (30 d by default) or a
trustedDevices.ttl that is not at least a minute (the allowed clock
skew) shorter than this value.
maxSessionTtl?
Section titled “maxSessionTtl?”
readonlyoptionalmaxSessionTtl?:Duration
The longest session this store will hold: at least your remember-me TTL
(session.rememberMeTtl, 30 d by default). The store refuses to start when
epochTtl is not longer, and createAuth refuses a remember-me or
absolute TTL longer than this value.
prefix?
Section titled “prefix?”
readonlyoptionalprefix?:string
Key prefix. Default auth:.