1. 首页
  2. 数据库
  3. 其它
  4. koa http basic auth::seedling:用于koa的HTTP基本身份验证中间件 源码

koa http basic auth::seedling:用于koa的HTTP基本身份验证中间件 源码

上传者: 2021-02-15 16:50:33上传 ZIP文件 29.42KB 热度 35次
koa-http-basic-auth 安装 npm npm install --save koa-http-basic-auth 纱 yarn add koa-http-basic-auth 用法 const Koa = require ( 'koa' ) ; const basicAuth = require ( 'koa-http-basic-auth' ) ; const app = new Koa ( ) ; // Register koa-http-basic-auth middleware app . use ( basicAuth ( { user : 'username
下载地址
用户评论