Skip to content

Commit 8faa755

Browse files
docs: add suggestions for secret and encryption key generation (#2578)
1 parent 90a6a00 commit 8faa755

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

www/docs/configuration/options.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ jwt: {
123123
// Defaults to NextAuth.js secret if not explicitly specified.
124124
// This is used to generate the actual signingKey and produces a warning
125125
// message if not defined explicitly.
126+
// You can generate a secret be using `openssl rand -base64 64`
126127
secret: 'INp8IvdIyeMcoGAgFGoA61DdBglwwSqnXJZkgz8PSnw',
127128
// You can generate a signing key using `jose newkey -s 512 -t oct -a HS512`
128129
// This gives you direct knowledge of the key used to sign the token so you can use it
@@ -140,6 +141,7 @@ jwt: {
140141
},
141142
// Set to true to use encryption. Defaults to false (signing only).
142143
encryption: true,
144+
// You can generate an encryption key by using `npx node-jose-tools newkey -s 256 -t oct -a A256GCM -u enc`
143145
encryptionKey: "",
144146
// decryptionKey: encryptionKey,
145147
decryptionOptions: {

0 commit comments

Comments
 (0)