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
"undefined is not a function" on jwt.sign #48
Comments
This module is used only to validate/decode jwts on express.js requests. If you need to sign requests you need to use https://github.com/auth0/node-jsonwebtoken If there is a bit of documentation causing this confusion, please feel free to submit a pr. |
Seems you could just as easily export the sign method from the already included jsonwebtoken module so that this module could provide that, no? |
+1 |
1 similar comment
+1 |
This fix the issue for me. |
thanks @acushlakoncept great solution! it's working for me |
+1 |
This fixes my issue as well, but, why is this not already in the documentation :( Update : So, it is mentioned in the official sample. ah. i see what happened there. |
Code:
Error:
The text was updated successfully, but these errors were encountered: