Skip to content

Commit e5f19ce

Browse files
lukaselmerdougwilson
authored andcommitted
docs: add note on length of secret
closes #919
1 parent 2a7a50b commit e5f19ce

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,9 @@ the secret without invalidating sessions, provide an array of secrets, with the
295295
secret as first element of the array, and including previous secrets as the later
296296
elements.
297297

298+
**Note** HMAC-256 is used to sign the session ID. For this reason, the secret should
299+
contain at least 32 bytes of entropy.
300+
298301
##### store
299302

300303
The session store instance, defaults to a new `MemoryStore` instance.

0 commit comments

Comments
 (0)