How to use the token function from koa-body

Find comprehensive JavaScript koa-body.token code examples handpicked from public code repositorys.

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();
});



fork icon11
star icon15
watch icon0

+ 2 other calls in file