Skip to content

Variable: KEY\_TTL\_SECONDS

const KEY_TTL_SECONDS: number

How long a cached signing key lives: 30 days.

This is the ceiling on how long a session cookie can stay valid across restarts, so it is deliberately >= the default session TTL - a key that expired before the cookies it signed would log everyone out for no reason.