We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47546bb commit 64b6f00Copy full SHA for 64b6f00
docs/addons/jwt.md
@@ -82,7 +82,10 @@ E.g.:
82
authjwt.keys.default.0.secret = 8XBFsF6HThIa7OV/bSynahEch+WbKrGcuiJVYPiwqPE=
83
```
84
85
-It needs more than 256 bits random string. You can get a secure random string
+It needs at least 256 bits random string. The length of the secret depends on the
86
+algorithm we use. The default one is `HS256`, so to ensure that the hash value is
87
+secure and not easily guessable, the secret key should be at least as long as the
88
+hash function's output - 256 bits (32 bytes). You can get a secure random string
89
with the following command:
90
91
```console
0 commit comments