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

Raise JWT::DecodeError on nil token #34

Merged
merged 2 commits into from
Feb 3, 2014

Conversation

tjmw
Copy link
Contributor

@tjmw tjmw commented Feb 3, 2014

Raise JWT::DecodeError when the token value is nil.

Before this change passing nil results in NoMethodError: undefined method 'split' for nil:NilClass. Hopefully the JWT::DecodeError exception is more helpful as feedback.

Thanks

progrium added a commit that referenced this pull request Feb 3, 2014
@progrium progrium merged commit b2a8b48 into jwt:master Feb 3, 2014
@tjmw tjmw deleted the raise-jwt-decodeerror-on-nil-token branch February 4, 2014 09:50
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