Giter Site home page Giter Site logo

Comments (4)

nguyenkims avatar nguyenkims commented on June 16, 2024

@gabesean thanks for your kind words! There seems to be a breaking change in passport-openidconnect, the lib we use in the example. Can you try with its previous version by running npm i [email protected] --save?

from passportjs-example.

elisavetsky avatar elisavetsky commented on June 16, 2024

You're welcome! I just tried with [email protected] and now I am getting a different error:

TypeError: user.get is not a function
    at /Users/gabesean/micro_journal/node_modules/passport-local-mongoose/index.js:212:21
    at pass (/Users/gabesean/micro_journal/node_modules/passport/lib/authenticator.js:291:9)
    at Authenticator.serializeUser (/Users/gabesean/micro_journal/node_modules/passport/lib/authenticator.js:296:5)
    at /Users/gabesean/micro_journal/node_modules/passport/lib/sessionmanager.js:33:10
    at Immediate._onImmediate (/Users/gabesean/micro_journal/node_modules/express-session/session/store.js:54:5)
    at processImmediate (node:internal/timers:466:21)

Would any of these dependency versions be the problem?

    "dotenv": "^16.0.1",
    "ejs": "^3.1.8",
    "express": "^4.18.1",
    "express-session": "^1.17.3",
    "lodash": "^4.17.21",
    "mongoose": "^6.3.4",
    "mongoose-encryption": "^2.1.2",
    "passport": "^0.6.0",
    "passport-anonymous": "^1.0.1",
    "passport-local": "^1.0.0",
    "passport-local-mongoose": "^7.1.2",
    "passport-openidconnect": "^0.0.2"

from passportjs-example.

nguyenkims avatar nguyenkims commented on June 16, 2024

@gabesean this error seems to come from mongoose which unfortunately I'm not familiar with.

from passportjs-example.

elisavetsky avatar elisavetsky commented on June 16, 2024

@nguyenkims That's fine! I'll open an issue with that plugin then. Cheers!

from passportjs-example.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.