Skip to content

Commit

Permalink
Fix example code of x5c header in README
Browse files Browse the repository at this point in the history
  • Loading branch information
suzunedev authored and anakinj committed Dec 23, 2023
1 parent e1fce4e commit 121429e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ crls = crl_uris.map do |uri|
end

begin
JWT.decode(token, nil, true, { x5c: { root_certificates: root_certificates, crls: crls })
JWT.decode(token, nil, true, { x5c: { root_certificates: root_certificates, crls: crls } })
rescue JWT::DecodeError
# Handle error, e.g. x5c header certificate revoked or expired
end
Expand Down

0 comments on commit 121429e

Please sign in to comment.