lib/jwt_authenticable.rb in researchable_jwt-authenticable-1.0.1 vs lib/jwt_authenticable.rb in researchable_jwt-authenticable-1.1.0
- old
+ new
@@ -9,9 +9,12 @@
extend Dry::Configurable
setting :algorithm
# Note that for RSA algorithms this will actually be the public key
setting :jwt_secret_key, default: nil
+ # If set to true, a jwt will only be considered valid if 2fa has been enabled
+ setting :enforce_2fa, default: false
+
SUPPORTED_ALGOS = [JWT::Algos::Hmac, JWT::Algos::Rsa].freeze
class Error < StandardError; end
end