We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
.sign is not defined
I get sign is not defined error when doing (v2)
sign is not defined
npm install koa-jwt@v2
const jwt = require('koa-jwt'); jwt.sign({ role: 'user' }, 'A very secret key')
The text was updated successfully, but these errors were encountered:
looks like the v2 branch doesn't have the new exports of .sign and .verify from v1
.sign
.verify
Sorry, something went wrong.
The jsonwebtoken methods are no longer exported in the v2 branch.
jsonwebtoken
See here: #32 (comment)
Closing this issue.
That's fine but can you at least update the docs. I spent 2 days figuring out why the examples didn't work on v2.
Point taken, will do.
No branches or pull requests
I get
sign is not defined
error when doing (v2)npm install koa-jwt@v2
The text was updated successfully, but these errors were encountered: