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

Enforce exp to be an Integer #205

Merged
merged 1 commit into from
Jul 11, 2017
Merged

Enforce exp to be an Integer #205

merged 1 commit into from
Jul 11, 2017

Conversation

lucasmazza
Copy link
Contributor

The previous code was too permissive to accept different types that could be eventually serialized as a number, but that would require that whoever's is decoding the tokens that exp could be a String.

The previous code was too permissive to accept different types that
could be eventually serialized as a number, but that would require
that whoever's is decoding the tokens that `exp` could be a `String`.
@excpt excpt merged commit b05e715 into jwt:master Jul 11, 2017
waiting-for-dev pushed a commit to waiting-for-dev/warden-jwt_auth that referenced this pull request Oct 23, 2017
2.0.0+ enforce an integer in the payload's exp parameter. One test used
an expiration time of 0.01 to simulate an already-expired token, which
triggered the raise added in jwt/ruby-jwt#205. A value of -1
accomplishes the same thing and allows the test to pass.
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 this pull request may close these issues.

2 participants