Minimum length of JWT secret #2636
Unanswered
WeersProductions
asked this question in
Help
Replies: 1 comment
-
the value you set is being used to create the actual secret I'm not going to claim I'm the expert on this, but the provided secret is only being used as kind of a seed for the actual value. See the source code https://github.com/nextauthjs/next-auth/blob/main/src/lib/jwt.js |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In the readme of next-auth, a secret of length 64 is used:
https://next-auth.js.org/configuration/options#jwt :
The following documentation states that at least a secret with length 512 should be used:
https://github.com/auth0/java-jwt#hmac-key-length-and-security :
I am still new to this, but I was wondering whether using a JWT secret of length 64 is safe?
Beta Was this translation helpful? Give feedback.
All reactions