Coder Social home page Coder Social logo

Comments (8)

 avatar commented on August 11, 2024

I'm using:

[email protected]
[email protected]
[email protected]
[email protected]
[email protected]

from mongoose-auth.

 avatar commented on August 11, 2024

Oh yeah - [email protected]/[email protected]

It's happening, of course, when setting up the routes:

mod_mongoose = require('mongoose');
mod_mongooseAuth  = require("mongoose-auth");

app = module.exports = mod_express.createServer();

app.configure(function(){
  ...
  mod_mongooseAuth.middleware();
});

from mongoose-auth.

bnoguchi avatar bnoguchi commented on August 11, 2024

Thanks for notifying me of the Issue. The bug is that the code loads ALL of the modules. I just pushed a fix for this. Now, modules are only enabled when you first access them via everyauth like:

everyauth.facebook;

Or via mongoose-auth like:

schema.plugin(mongooseAuth, {
    facebook: {
        everyauth: {...}
    }
}); // i.e., the modules that are now enabled are the keys of this Object -- i.e., `facebook`

Should be everyauth v0.0.10 now via npm install.

from mongoose-auth.

 avatar commented on August 11, 2024

Thanks! Makes sense. I just did a quick npm update of everyauth (verified @0.0.10) and am getting the same error, but I'll dig in a little later and confirm if it's still an issue or not.

from mongoose-auth.

bnoguchi avatar bnoguchi commented on August 11, 2024

Can you send me a gist?

from mongoose-auth.

liamdon avatar liamdon commented on August 11, 2024

This was giving me trouble today as well - it works via everyauth but not via mongoose-auth.

I propose the following fix:
https://github.com/bnoguchi/mongoose-auth/pull/2/files

from mongoose-auth.

bnoguchi avatar bnoguchi commented on August 11, 2024

mongoose-auth does not need a patch. The issue lies with everyauth. I just fixed this completely this time. Install everyauth v0.1.0 via

$ npm install everyauth

from mongoose-auth.

 avatar commented on August 11, 2024

Thanks - seems to be working now (at least not crashing on startup.) I also
noticed that node was still using the older 0.9.0 everyauth when I followed
up, have upgraded/forced 0.1.0 and it's looking good, thanks.

Jason Bond Pratt
President/CTO, Tixelated
202.841.8396
http://tixelated.com/[email protected]

http://tixelated.com/
http://tixelated.com/ [email protected]://tixelated.com
http://twitter.com/tixelated

On Thu, Apr 14, 2011 at 1:49 PM, bnoguchi <
[email protected]>wrote:

mongoose-auth does not need a patch. The issue lies with everyauth. I just
fixed this completely this time. Install everyauth v0.1.0 via

$ npm install everyauth

Reply to this email directly or view it on GitHub:
#1 (comment)

from mongoose-auth.

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.