Skip to content

Commit

Permalink
Nevermind, lets not use it
Browse files Browse the repository at this point in the history
  • Loading branch information
anakinj committed Oct 4, 2024
1 parent 4f4c93f commit 5dae919
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/jwt/decode.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def decode_segments
verify_algo
set_key
verify_signature
verify_claims
Claims::DecodeVerifier.verify!(payload, @options)
end

[token.payload, token.header]
Expand Down Expand Up @@ -90,10 +90,6 @@ def find_key(&keyfinder)
raise JWT::DecodeError, 'No verification key available'
end

def verify_claims
Claims::DecodeVerifier.verify!(payload, @options)
end

def validate_segment_count!
segment_count = token.jwt.count('.') + 1
return if segment_count == 3
Expand Down

0 comments on commit 5dae919

Please sign in to comment.