Update README

This commit is contained in:
Tobe O 2018-09-11 18:12:15 -04:00
parent 8617598dd2
commit 0b80165414

View file

@ -20,7 +20,7 @@ configureServer(Angel app) async {
var auth = new AngelAuth();
auth.serializer = ...;
auth.deserializer = ...;
auth.strategies.add(new LocalAuthStrategy(...));
auth.strategies['local'] = new LocalAuthStrategy(...);
// POST route to handle username+password
app.post('/local', auth.authenticate('local'));