Update README
This commit is contained in:
parent
8617598dd2
commit
0b80165414
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ configureServer(Angel app) async {
|
||||||
var auth = new AngelAuth();
|
var auth = new AngelAuth();
|
||||||
auth.serializer = ...;
|
auth.serializer = ...;
|
||||||
auth.deserializer = ...;
|
auth.deserializer = ...;
|
||||||
auth.strategies.add(new LocalAuthStrategy(...));
|
auth.strategies['local'] = new LocalAuthStrategy(...);
|
||||||
|
|
||||||
// POST route to handle username+password
|
// POST route to handle username+password
|
||||||
app.post('/local', auth.authenticate('local'));
|
app.post('/local', auth.authenticate('local'));
|
||||||
|
|
Loading…
Reference in a new issue