Giter VIP home page Giter VIP logo

Comments (3)

Afterglow avatar Afterglow commented on June 13, 2024

I just got the same error using google so whatever causes it isn't limited to github logins

Error: WARNING: You are trying to access the attribute/method configured by `findUserById`, which you did not configure. Time to configure it.
    at EveryModule.(anonymous function) [as findUserById] (/opt/doorman/node_modules/everyauth/lib/modules/everymodule.js:133:13)
    at fetchUserFromSession (/opt/doorman/node_modules/everyauth/index.js:95:43)
    at Object.handle (/opt/doorman/node_modules/everyauth/index.js:43:5)
    at next (/opt/doorman/node_modules/connect/lib/http.js:203:15)
    at Object.checkUser [as handle] (/opt/doorman/app.js:40:5)
    at next (/opt/doorman/node_modules/connect/lib/http.js:203:15)
    at next (/opt/doorman/node_modules/connect/lib/middleware/session.js:323:9)
    at /opt/doorman/node_modules/connect/lib/middleware/session.js:342:9
    at /opt/doorman/node_modules/connect/lib/middleware/session/memory.js:52:9
    at process._tickCallback (node.js:419:13)

from everyauth.

bnoguchi avatar bnoguchi commented on June 13, 2024

Assuming you're using express 3.x (not 4.x), please refer to https://github.com/bnoguchi/everyauth#accessing-the-user

everyauth.everymodule.findUserById( function (userId, callback) {
  User.findById(userId, callback);
  // callback has the signature, function (err, user) {...}
});

from everyauth.

Afterglow avatar Afterglow commented on June 13, 2024

From what I could see I think this bug should probably be filed against Doorman not everyauth. Thanks for the explanation.

from everyauth.

Related Issues (20)

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.