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::Algos::Eddsa::RbNaCl #258

Closed
yivo opened this issue Mar 23, 2018 · 3 comments
Closed

NameError: uninitialized constant JWT::Algos::Eddsa::RbNaCl #258

yivo opened this issue Mar 23, 2018 · 3 comments

Comments

@yivo
Copy link

yivo commented Mar 23, 2018

Steps to reproduce:

  1. Run JWT.encode({}, OpenSSL::PKey::RSA.generate(2048), 'ED25519')

This error occurs when you supply invalid key type to encoder.

@excpt
Copy link
Member

excpt commented Mar 23, 2018

Thanks for reporting. What version of this gem are you using?

@yivo
Copy link
Author

yivo commented Mar 23, 2018

@excpt The latest one: 2.1.0

@excpt
Copy link
Member

excpt commented Jan 21, 2019

In order to use the ED25519 algorithm it is required to have the rbnacl gem installed. See instruction for usage in the README.md.

@excpt excpt closed this as completed Jan 21, 2019
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