@wdalmut/basic-auth

0.0.1 • Public • Published

Basic Authentication layer for @wdalmut/mini-auth

A simple authentication layer for basic auth

npm install --save @wdalmut/basic-auth

Usage

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

Usage with @wdalmut/mini-auth

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

auth(basic(fromDb))

Readme

Keywords

none

Package Sidebar

Install

npm i @wdalmut/basic-auth

Weekly Downloads

22

Version

0.0.1

License

MIT

Unpacked Size

3.63 kB

Total Files

7

Last publish

Collaborators

  • wdalmut