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

cannot load such file -- jwt #339

Closed
ICloud0114 opened this issue Nov 11, 2019 · 3 comments
Closed

cannot load such file -- jwt #339

ICloud0114 opened this issue Nov 11, 2019 · 3 comments

Comments

@ICloud0114
Copy link

ICloud0114 commented Nov 11, 2019

Traceback (most recent call last):
2: from token.rb:1:in <main>' 1: from /Users/***/.rvm/rubies/ruby-2.6.3/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in require'
/Users/***/.rvm/rubies/ruby-2.6.3/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- jwt (LoadError)

########################################################################
require 'jwt'

payload = { data: 'test' }

token = JWT.encode payload, nil, 'none'

puts token

decoded_token = JWT.decode token, nil, false

puts decoded_token

@victorhazbun
Copy link

seems like you did not installed the gem. Please double check.

@excpt
Copy link
Member

excpt commented Jul 7, 2020

@ICloud0114 Do you still have any issues using the gem?

@excpt
Copy link
Member

excpt commented Aug 18, 2020

Closed due to inactivity.

@excpt excpt closed this as completed Aug 18, 2020
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

3 participants