thehumblebrag/droplifter — pull request #24 by stafu (2014-08-31 10:40:44+00:00)
Title: User authentication via Twitter and Facebook and internal auth token

For Facebook auth/user creation, hit `/auth/facebook/token` with `access_token` parameter. For Twitter, hit `/auth/twitter/token` with `oauth_token`, `oauth_token_secret` and `user_id`.

The middleware checks for a `token` parameter in params/body/query respectively and sets the matching User to req.user if found.