# @wdalmut/basic-auth

> Basic Authentication layer for @wdalmut/mini-auth

Latest version **0.0.1** (published 2018-03-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install @wdalmut/basic-auth
pnpm add @wdalmut/basic-auth
yarn add @wdalmut/basic-auth
bun add @wdalmut/basic-auth
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2018-03-11 |
| First published | 2018-03-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Walter Dal Mut |
| Maintainers | wdalmut |

## Links

- npm: https://www.npmjs.com/package/@wdalmut/basic-auth
- Repository: https://github.com/wdalmut/basic-auth-js
- Homepage: https://github.com/wdalmut/basic-auth-js#readme
- Issues: https://github.com/wdalmut/basic-auth-js/issues
- npm.io page: https://npm.io/package/@wdalmut/basic-auth

## Recent versions

- 0.0.1 (latest) — 2018-03-11

## README

# Basic Authentication layer for @wdalmut/mini-auth

A simple authentication layer for `basic auth`

```
npm install --save @wdalmut/basic-auth
```

## Usage

```js
basic(res)((username, password) => {
  return Promise.resolve({id: 1, ...})
})
```

### Usage with `@wdalmut/mini-auth`

```js
// just an example
const fromDB = (username, password) => {
  return User.find(/*...*/),
};

auth(basic(fromDb))
```

---
_Source: https://npm.io/package/@wdalmut/basic-auth · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
