@chuxingpay/soa-auth
v1.0.7
Published
付迅认证服务工具库 ===============
Downloads
4
Readme
付迅认证服务工具库
支持API-Key
及用户 JWT Token
认证.
安装
npm i @chuxingpay/soa-auth
使用
const soaAuth = require('@chuxingpay/soa-auth')({
host: 'https://api.chuxingpay.cn/soa-auth'
})
api.before = [
soaAuth.middlewares.authorize()
]