From 19cc7c24969e467e42e2a78572e886993f48df36 Mon Sep 17 00:00:00 2001 From: Harry Date: Wed, 2 Jan 2019 16:18:13 -0800 Subject: [PATCH] Document `failWithError` parameter in authenticate() --- lib/middleware/authenticate.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/middleware/authenticate.js b/lib/middleware/authenticate.js index ccc9b2ac..19eb7ac6 100644 --- a/lib/middleware/authenticate.js +++ b/lib/middleware/authenticate.js @@ -29,6 +29,8 @@ var http = require('http') * message for failure. * - `failureFlash` True to flash failure messages or a string to use as a flash * message for failures (overrides any from the strategy itself). + * - `failWithError` True to pass off the error onto the next Express handler in + * the form of an `AuthenticationError` * - `assignProperty` Assign the object provided by the verify callback to given property * * An optional `callback` can be supplied to allow the application to override