Skip to content

Commit

Permalink
version bump with conditional fix
Browse files Browse the repository at this point in the history
  • Loading branch information
seano-nulogy committed Feb 28, 2024
1 parent ca05f7a commit d6bac62
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion auth0_rs256_jwt_verifier.gemspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true
Gem::Specification.new do |s|
s.name = "auth0_rs256_jwt_verifier"
s.version = "0.0.3"
s.version = "0.0.6"
s.date = "2024-02-27"
s.summary = "Auth0 JWT (RS256) verification library"
s.description = <<-DESCRIPTION.gsub(/\s+/, " ").strip
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ def initialize(http)
def download(url)
url = String(url)
body = @http.get(url)
json = {"keys" => JSON.parse(body) }

json_body = JSON.parse(body)
json = json_body.instance_of?(Array) ? {"keys" => json_body } : json_body
begin
JWKSet.new(json)
rescue JWKSet::ParseError
Expand Down

0 comments on commit d6bac62

Please sign in to comment.