Comments (3)
Can you confirm access to req.user in the example app that comes with mongoose-auth? There, req.user
is present once logged in.
from mongoose-auth.
Well, after getting your example working right and removing most everything in my app to reflect the example app I figured out what my problem was. In my app.configure I has app.use(app.router). Once I remove that, req.user is there.
You can check out my test file. https://gist.github.com/1051647/f87533d8f31c9f7780a87fae24e515389673e18d#file_test.js
from mongoose-auth.
Just added a note to the README to steer people away from including app.router in their express configuration.
from mongoose-auth.
Related Issues (20)
- Doesn't install out-of-the-box on Windows (without cygwin) HOT 3
- Is this project still being maintained? HOT 8
- problem installing mongoose-auth on Mac OSX HOT 3
- routing with password authentication?
- Cannot find module 'bcrypt' in nodejs application ? HOT 1
- How do I fix this? getAccessToken of `twitter` module timed out.
- mongooseauth cant install in Windows npm HOT 1
- Node 0.8.0, OSX, bcrypt installs but won't load, wrong architecture HOT 2
- Not able to register new user HOT 1
- Examples on the site incompatible with the latest version of express
- Error with everyauth after 0.3 version update HOT 8
- "everyauth is not defined" error when using view helpers HOT 1
- Installation fails on Linux64 HOT 2
- Where I can found the createWithFB method described on the README.
- Broken out of the box.
- Workin example in Rails
- Error on running example
- Error running example HOT 3
- Don't create a session after registering HOT 2
- problem with loginWith
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mongoose-auth.