lib/jwt/aws/kms.rb in jwt-aws-kms-1.0.0 vs lib/jwt/aws/kms.rb in jwt-aws-kms-1.1.0

- old
+ new

@@ -23,8 +23,16 @@ SignVerifyKey else raise ArgumentError, "Algorithm #{algorithm} not supported" end.new(algorithm: algorithm) end + + def self.replace_defaults! + [HmacKey, SignVerifyKey].each do |type| + type::MAPPINGS.each_key do |algorithm| + type.register_algorithm(type.new(algorithm: algorithm)) + end + end + end end end end