Skip to content

Commit

Permalink
Remove Rubocop dissabling rule
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Schroer committed Oct 19, 2023
1 parent 101c2bf commit a795ed8
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/auth0_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,7 @@ def self.validate_token(token)
jwks_hash = JSON.parse(jwks_response.body).deep_symbolize_keys
decoded_token = decode_token(token, jwks_hash)
Response.new(decoded_token, nil)
# rubocop:disable Lint/ShadowedException
rescue JWT::DecodeError
Response.new(nil, Error.new('Bad credentials', :unauthorized))
end
# rubocop:enable Lint/ShadowedException
end

0 comments on commit a795ed8

Please sign in to comment.