pharaoh_basic_auth 1.0.0 copy "pharaoh_basic_auth: ^1.0.0" to clipboard
pharaoh_basic_auth: ^1.0.0 copied to clipboard

Simple plug & play HTTP basic auth middleware for Pharaoh.

example/pharaoh_basic_auth_example.dart

import 'package:pharaoh/pharaoh.dart';
import 'package:pharaoh_basic_auth/src/basic_auth.dart';

void main() async {
  final app = Pharaoh();

  app.use(basicAuth(users: {"foo": "foo-bar-pass"}));

  app.get('/', (req, res) => res.ok('Hurray 🔥'));

  await app.listen();
}
2
likes
0
points
0
downloads

Publisher

unverified uploader

Weekly Downloads

Simple plug & play HTTP basic auth middleware for Pharaoh.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

pharaoh

More

Packages that depend on pharaoh_basic_auth