How to use the token function from koa-body
Find comprehensive JavaScript koa-body.token code examples handpicked from public code repositorys.
GitHub: SvenShi/sven_ninja
79 80 81 82 83 84 85 86 87 88 89 90
ctx.body = await new User({eid}).enableEnv(); }); router.post('/api/verifyToken', body(), async (ctx) => { const body = ctx.request.body; const token = body.token; ctx.body = await new User({token}).verifyToken(); });
11
15
0
+ 2 other calls in file
koa-body.eid is the most popular function in koa-body (111 examples)