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

add verify in Readme #60

Open
fyzhu opened this issue Dec 11, 2019 · 2 comments
Open

add verify in Readme #60

fyzhu opened this issue Dec 11, 2019 · 2 comments

Comments

@fyzhu
Copy link

fyzhu commented Dec 11, 2019

建议在readme里加入verify的用法,这样对新手用户更友好。

@510846
Copy link

510846 commented Apr 28, 2020

嗯,我正在找 verify 呢。。

@510846
Copy link

510846 commented Apr 28, 2020

搞定了,贴代码 ~

const jwt = ctx.app.jwt;
const token = ctx.request.query.token;
jwt.verify(token, '******', {}, (err, decoded) => {
  console.log(decoded);
});

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