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

NameError: uninitialized constant JWT::JWK #403

Closed
nandini-klocrix opened this issue Feb 1, 2021 · 5 comments
Closed

NameError: uninitialized constant JWT::JWK #403

nandini-klocrix opened this issue Feb 1, 2021 · 5 comments

Comments

@nandini-klocrix
Copy link

Hi,
I am verifying apple login and verifying token on server side. I am following this doc for reference:
https://styrk.medium.com/handle-apple-sign-in-on-the-server-ruby-on-rails-78f0d3b4991d

But when I call jwk = JWT::JWK.import I get error "NameError: uninitialized constant JWT::JWK"

I am also following this gem readme file and getting same error when I run jwk = JWT::JWK.new(OpenSSL::PKey::RSA.new(2048)) in console

I am also doing require 'jwt' in console.

Thanks

@anakinj
Copy link
Member

anakinj commented Feb 4, 2021

Hello. What version of the jwt gem are you using?

@nandini-klocrix
Copy link
Author

jwt (1.5.6)

@anakinj
Copy link
Member

anakinj commented Feb 4, 2021

Think that is the issue. The JWK features were added in version 2.2.0 (i think)

@nandini-klocrix
Copy link
Author

ok, thanks! will try with this version and update it here.

@anakinj
Copy link
Member

anakinj commented May 19, 2021

Closing this. The JWK features were not present in 1.5.6.

@anakinj anakinj closed this as completed May 19, 2021
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

No branches or pull requests

2 participants