Why is the JWT secret hardcoded by default? #235
Replies: 1 comment 7 replies
-
Honestly, I just used a separate JWT secret because I saw it recommended in the devise-jwt README:
I don't know what are the security implications of reusing I will probably push a change to the generator to use |
Beta Was this translation helpful? Give feedback.
-
Hi there,
as the title suggests, I'd like to know the reason behind the decision to hardcode the JWT secret in
app/misc/rodauth_main.rb
instead of using Rails secret_key_base.I was considering creating a separate JWT secret in Rails credentials and using it for JWT signing, then I realized I'd seen secret_key_base used as JWT secret quite a number of times in the past. Could this be a security measure for in case Rails secret_key_base is compromised?
Beta Was this translation helpful? Give feedback.
All reactions