egg-oauth-jwt
Install
$ npm i egg-oauth-jwt --save
Usage
// {app_root}/config/plugin.jsexportsoauthjwt = enable: true package: 'egg-oauth-jwt';
Configuration
// {app_root}/config/config.default.jsexportsoauthjwt = extend: 'oauth' algorithm: 'RS256' primaryKey: path publicKey: path clientSide: false accessTokenLifeTime: 7200 refreshTokenLifeTime: 864000 authorizationCodeLifeTime: 120 tokenType: 'Bearer';
see config/config.default.js for more detail.
Example
Questions & Suggestions
Please open an issue here.