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

Update jwt gem #5

Open
GoogleCodeExporter opened this issue Aug 26, 2015 · 2 comments
Open

Update jwt gem #5

GoogleCodeExporter opened this issue Aug 26, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

A new major revision has been released and it's API changed.

Original issue reported on code.google.com by sebastie...@gmail.com on 12 Jun 2014 at 3:55

@GoogleCodeExporter
Copy link
Author

With JWT versions >=  1.0, JWT.decode is returning a token AND a header. Then, 
the call @token = JWT.decode(token, public_key, !!public_key) is no longer 
right.

There are 2 solutions, 

1) freezing gem dependencies to JWT ~> 0.1 
or 
2) update the call to 
@token, unnused = JWT.decode(token, public_key, !!public_key)

I am having the same problems that this user.

Original comment by je...@microhealth.org on 17 Jul 2014 at 9:48

@GoogleCodeExporter
Copy link
Author

Thank you for elaboration.

I'll would prefer second solution since another gem in a project may rely on 
JWT versions >= 1.0...

Original comment by sebastie...@gmail.com on 17 Jul 2014 at 10:52

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant