deepexi-egg-jwt
Deepexi Egg's JWT(JSON Web Token Authentication Plugin)
Install
$ npm i egg-deepexi-jwt --save
or
yarn add egg-deepexi-jwt
Usage
// {app_root}/config/plugin.jsexportsjwt = enable: true package: "egg-deepexi-jwt";
Configuration
// {app_root}/config/config.default.jsexportsjwt = enable: true enableParse: true enableSignature: false // if you don't like this way // you can use in app/router.js whiteUrls: '/test';
see config/config.default.js for more detail.
Example
// app/router.js"use strict"; module { app; // if you want use middleware app;};
// app/controller/test.js"use strict"; module { Controller { console; thisctxbody = thisctxquery; } return SuccessController;};
Questions & Suggestions
Please open an issue here.