Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: undefined method `casecmp' for nil:NilClass when invalid alg #558

Closed
nataliastanko opened this issue Apr 17, 2023 · 0 comments · Fixed by #559
Closed

Bug: undefined method `casecmp' for nil:NilClass when invalid alg #558

nataliastanko opened this issue Apr 17, 2023 · 0 comments · Fixed by #559

Comments

@nataliastanko
Copy link
Contributor

Getting #<NoMethodError: undefined method casecmp for nil:NilClass> when providing invalid algorithm to the JWT.decode:

JWT.decode(token, 'secret', true, algorithm: 'invalid-HS256')

Affecting the jwt gem since the #512

@nataliastanko nataliastanko changed the title undefined method `casecmp' for nil:NilClass when invalid alg Bug: undefined method `casecmp' for nil:NilClass when invalid alg Apr 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant