Skip to content

Commit 44453bf

Browse files
committed
add autoExtendExpiration option to readme
1 parent 1a396ef commit 44453bf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ app.use('*', sessionMiddleware({
7878
// You can also supply a function instead of a plain string
7979
// encryptionKey: () => 'function_that_returns_a_long_string'
8080
expireAfterSeconds: 900, // Expire session after 15 minutes of inactivity
81+
autoExtendExpiration: true, // Extend the session expiration time automatically. Defaults to true
8182
cookieOptions: {
8283
sameSite: 'Lax', // Recommended for basic CSRF protection in modern browsers
8384
path: '/', // Required for this library to work properly

0 commit comments

Comments
 (0)