@hoajs/basic-auth
v0.1.0
Published
Basic Authentication middleware for Hoa.
Downloads
11
Readme
@hoajs/basic-auth
Basic Authentication middleware for Hoa.
Installation
$ npm i @hoajs/basic-auth --saveQuick Start
import { Hoa } from 'hoa'
import { basicAuth } from '@hoajs/basic-auth'
const app = new Hoa()
app.use(basicAuth())
app.use(async (ctx) => {
ctx.res.body = `Hello, Hoa!`
})
export default appDocumentation
The documentation is available on hoa-js.com
Test (100% coverage)
$ npm testLicense
MIT
