Skip to content

Raise JWT::DecodeError on nil token#34

Merged
progrium merged 2 commits intojwt:masterfrom
tjmw:raise-jwt-decodeerror-on-nil-token
Feb 3, 2014
Merged

Raise JWT::DecodeError on nil token#34
progrium merged 2 commits intojwt:masterfrom
tjmw:raise-jwt-decodeerror-on-nil-token

Conversation

@tjmw
Copy link
Copy Markdown
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