-
Notifications
You must be signed in to change notification settings - Fork 376
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
Options hash uses both symbols and strings as keys. #95
Comments
👍 for symbol only until someone complain about it 😄 |
👍 symbols only :) |
+1 This is an issue beyond semantics... @aj-michael it is a security hole. I pass in the following: and it decodes the token successfully. The hole is it decodes regardless of what the if I pass in: this fails because how the |
@excpt fair enough! I wasn't trying to be snarky. Thank you for the fast PR! |
@excpt awesome, very good clean there 👍 |
I tried to verify the issuer on a JWT that I was decoding today, and I found this line (and others like it) very ugly.
This means that my code to decode the JWT looked like this:
In my opinion, the consumer of this API should be be able to do one of the following:
Thoughts?
The text was updated successfully, but these errors were encountered: