| 332 | * Configuration used by the database store. |
| 333 | */ |
| 334 | export interface DatabaseStoreConfig { |
| 335 | connectionName?: string |
| 336 | tableName?: string |
| 337 | |
| 338 | /** |
| 339 | * The probability (in percent) that garbage collection of expired |
| 340 | * sessions will be triggered on any given request. |
| 341 | * |
| 342 | * For example, 2 means 2% chance. |
| 343 | * Set to 0 to disable garbage collection. |
| 344 | * |
| 345 | * Defaults to 2 (2% chance) |
| 346 | */ |
| 347 | gcProbability?: number |
| 348 | |
| 349 | /** |
| 350 | * Encrypt the session data with the encryption service instead of |
| 351 | * only signing it. Sessions written without encryption cannot be |
| 352 | * read once it is enabled, so users start a new session. |
| 353 | * |
| 354 | * Defaults to false |
| 355 | */ |
| 356 | encrypt?: boolean |
| 357 | } |
| 358 | |
| 359 | /** |
| 360 | * Resolved session config after processing by defineConfig |
nothing calls this directly
no outgoing calls
no test coverage detected