You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TypeError: strategy.authenticate is not a function at attempt (/home/golgotha/Documents/workspace/test/socket.io/node_modules/passport/lib/middleware/authenticate.js:369:16) at authenticate (/home/golgotha/Documents/workspace/test/socket.io/node_modules/passport/lib/middleware/authenticate.js:370:7) at Layer.handle [as handle_request] (/home/golgotha/Documents/workspace/test/socket.io/node_modules/express/lib/router/layer.js:95:5) at trim_prefix (/home/golgotha/Documents/workspace/test/socket.io/node_modules/express/lib/router/index.js:328:13) at /home/golgotha/Documents/workspace/test/socket.io/node_modules/express/lib/router/index.js:286:9 at Function.process_params (/home/golgotha/Documents/workspace/test/socket.io/node_modules/express/lib/router/index.js:346:12) at next (/home/golgotha/Documents/workspace/test/socket.io/node_modules/express/lib/router/index.js:280:10) at initialize (/home/golgotha/Documents/workspace/test/socket.io/node_modules/passport/lib/middleware/initialize.js:98:5) at Layer.handle [as handle_request] (/home/golgotha/Documents/workspace/test/socket.io/node_modules/express/lib/router/layer.js:95:5) at trim_prefix (/home/golgotha/Documents/workspace/test/socket.io/node_modules/express/lib/router/index.js:328:13)
Operating System: Ubuntu 22.04.3 LTS
Node version: v18.17.1
passport version: "passport": "^0.6.0"
The text was updated successfully, but these errors were encountered:
GolgothaAksanti
changed the title
strategy.authenticate is not a function (passport-google-oauth20)
strategy.authenticate is not a function (passport-facebook)
Sep 1, 2023
I need help please
Am having issue while trying to implement passport-facebook
here are my code
and error is displaying in the browser
TypeError: strategy.authenticate is not a function at attempt (/home/golgotha/Documents/workspace/test/socket.io/node_modules/passport/lib/middleware/authenticate.js:369:16) at authenticate (/home/golgotha/Documents/workspace/test/socket.io/node_modules/passport/lib/middleware/authenticate.js:370:7) at Layer.handle [as handle_request] (/home/golgotha/Documents/workspace/test/socket.io/node_modules/express/lib/router/layer.js:95:5) at trim_prefix (/home/golgotha/Documents/workspace/test/socket.io/node_modules/express/lib/router/index.js:328:13) at /home/golgotha/Documents/workspace/test/socket.io/node_modules/express/lib/router/index.js:286:9 at Function.process_params (/home/golgotha/Documents/workspace/test/socket.io/node_modules/express/lib/router/index.js:346:12) at next (/home/golgotha/Documents/workspace/test/socket.io/node_modules/express/lib/router/index.js:280:10) at initialize (/home/golgotha/Documents/workspace/test/socket.io/node_modules/passport/lib/middleware/initialize.js:98:5) at Layer.handle [as handle_request] (/home/golgotha/Documents/workspace/test/socket.io/node_modules/express/lib/router/layer.js:95:5) at trim_prefix (/home/golgotha/Documents/workspace/test/socket.io/node_modules/express/lib/router/index.js:328:13)
"passport": "^0.6.0"
The text was updated successfully, but these errors were encountered: