req.user?

87 views
Skip to first unread message

Kasper Souren

unread,
Jun 5, 2012, 8:43:53 PM6/5/12
to everyauth
In README.md I read
everyauth also provides convenience methods on the ServerRequest
instance req. From any scope that has access to req, you get the
following convenience getters and methods:
req.loggedIn
req.user
req.logout()


For FB and twitter log ins all seems allright but when logging in with
password auth req.user is not working.

This could be related to the problem that usersByLogin only works for
me when id == 0.

My code is an adaptation of the example code. I'm still pretty new to
node.js but I hope to find a solution for this. Will keep you
updated. Meanwhile any tips are welcome.
Reply all
Reply to author
Forward
0 new messages