I’m trying to deploy the Lambda sample app described in the Okta toolkit. It works fine running from localhost, but when I run it in Lambda, I get:
Error: Unknown authentication strategy "oidc"
at attempt (/var/task/node_modules/passport/lib/middleware/authenticate.js:173:37)
at authenticate (/var/task/node_modules/passport/lib/middleware/authenticate.js:349:7)
at /var/task/node_modules/@okta/oidc-middleware/src/connectUtil.js:81:28
at Layer.handle [as handle_request] (/var/task/node_modules/express/lib/router/layer.js:95:5)
at trim_prefix (/var/task/node_modules/express/lib/router/index.js:317:13)
at /var/task/node_modules/express/lib/router/index.js:284:7
at Function.process_params (/var/task/node_modules/express/lib/router/index.js:335:12)
at next (/var/task/node_modules/express/lib/router/index.js:275:10)
at urlencodedParser (/var/task/node_modules/body-parser/lib/types/urlencoded.js:91:7)
at Layer.handle [as handle_request] (/var/task/node_modules/express/lib/router/layer.js:95:5)