-
Notifications
You must be signed in to change notification settings - Fork 374
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
can't create token - 'NotImplementedError: Unsupported signing method' #186
Comments
Your payload needs to be a hash. payload = {
username: 'username'
} |
I changed the payload to payload = { username: 'username' } and ran payload = { username: 'username' }
hmac_secret = 'my$ecretK3y'
JWT.encode(payload, hmac_secret, "H256") and I get this error
|
@Jpease1020 Were you able to solve this? I am having same issue! |
Have you checked for typos? Sometimes I catch myself fast typing |
Great thanks! |
when I run this code,
I get this error
JSON::GeneratorError: only generation of JSON objects or arrays allowed
I am using ruby version 2.3.0 in a rails 4.2.6 project
The text was updated successfully, but these errors were encountered: