lib/jwk_loader/jwks.rb in jwk-loader-0.1.1 vs lib/jwk_loader/jwks.rb in jwk-loader-1.0.0

- old
+ new

@@ -12,9 +12,13 @@ response = Net::HTTP.get_response(uri) from_json(response.body) end + def from_memory(uri) + JwkLoader.memory_store.fetch(uri) + end + def from_json(jwks_json) JSON.parse(jwks_json, symbolize_names: true) end end end