Skip to content

Commit

Permalink
Make options compatible with Ruby 2.5 and 2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
anakinj committed Jul 25, 2023
1 parent 3192bf5 commit 7a90177
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/jwt.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def decode(jwt, key = nil, verify = true, options = {}, &keyfinder) # rubocop:di
verify: verify,
keyfinder: keyfinder,
allowed_algorithms: normalizde_algorithm_option(options),
**configuration.decode.to_h.merge(options)).decode_segments
**configuration.decode.to_h.merge(options).transform_keys(&:to_sym)).decode_segments
end

# Order is very important - first check for string keys, next for symbols
Expand Down

0 comments on commit 7a90177

Please sign in to comment.