jaredhanson / passport-totp

TOTP authentication strategy for Passport and Node.js.
MIT License
152 stars 47 forks source link

EMPTY_RESPONSE error when running through TotpStrategy #11

Open mikeyamato opened 6 years ago

mikeyamato commented 6 years ago

After I hit TotpStrategy the process fails and returns "undefined" back to my app.post('/login-otp' route resulting in a 'failureRedirect'.

Within TotpStrategy user, user.id, and obj all gets called properly with appropriate values when looking at the log. So theoretically return done(null, obj.key, obj.period) should return with a value. If that's the case why am I getting "undefined" at this point? I know this is user error, but what piece of the puzzle am I missing?

x-post with stackoverflow