2.0.0 • Published 7 years ago

@rainder/koa-basic-auth v2.0.0

Weekly downloads
6
License
ISC
Repository
-
Last release
7 years ago

koa-basic-auth

import * as Koa from 'koa';
import { KoaBasicAuth } from '@rainder/koa-basic-auth';

const app = new Koa();

app.use(KoaBasicAuth.middleware({
  john: 'smith',
  igor: 'danutov'
}));

Support for password hashing algorithm

import { KoaBasicAuth } from '@rainder/koa-basic-auth';

app.use(KoaBasicAuth.middleware({
  john: 'a66e44736e753d4533746ced572ca821',
  igor: 'e98ef4146865a8ccaca773182be30990'
}, {
  hashingAlgorithm: 'md5',
}));
2.0.0

7 years ago

1.0.0

8 years ago

0.3.1

9 years ago

0.3.0

9 years ago

0.2.0

9 years ago

0.1.0

9 years ago