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

Simple plug & play HTTP basic authentication 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
160
points
0
downloads

Publisher

unverified uploader

Weekly Downloads

Simple plug & play HTTP basic authentication middleware for Pharaoh.

Repository (GitHub)
View/report issues
Contributing

Documentation

API reference

License

MIT (license)

Dependencies

pharaoh

More

Packages that depend on pharaoh_basic_auth