diff --git a/packages/node_modules/@node-red/editor-api/lib/auth/index.js b/packages/node_modules/@node-red/editor-api/lib/auth/index.js index 7781ebc7f..a7ee2e7f3 100644 --- a/packages/node_modules/@node-red/editor-api/lib/auth/index.js +++ b/packages/node_modules/@node-red/editor-api/lib/auth/index.js @@ -199,7 +199,7 @@ function genericStrategy(adminApp,strategy) { if (/^post$/i.test(options.callbackMethod)) { callbackMethodFunc = adminApp.post; } - callbackMethodFunc('/auth/strategy/callback', + callbackMethodFunc.call(adminApp,'/auth/strategy/callback', passport.authenticate(strategy.name, {session:false, failureRedirect: settings.httpAdminRoot }), completeGenerateStrategyAuth );