bnoguchi/everyauth — Issue #191: no response is sent if findOrCreateUser promise fails
Author: RandomEtc
Created: 2012-02-25 03:38:39+00:00
State: open

Using both the oauth and oauth2 modules, with twitter and facebook respectively.

Right now our responses hang and eventually timeout if our database is unreachable or some error occurs when creating a user. Calling `promise.fail(err)` on the promise returned by `findOrCreateUser` eventually passes control to `moduleErrback` but that function doesn't have access to the response object to notify users. Is there some existing handler we should (or shouldn't) be specifying that will return a meaningful error to users? Or would this require modifying everyauth internals?