0.0.3 • Published 1 year ago
@hong97/egg-auth v0.0.3
egg-auth
Install
$ npm i egg-auth --save
Usage
// {app_root}/config/plugin.js
exports.auth = {
enable: true,
package: 'egg-auth',
};
Configuration
// {app_root}/config/config.default.js
exports.token = {
// ignore: ''
};
exports.traffic = {
windowSize: 60 * 1000,
maxRequest: 1000,
}
see config/config.default.js for more detail.
Example
Questions & Suggestions
Please open an issue here.