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?
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
, andobj
all gets called properly with appropriate values when looking at the log. So theoreticallyreturn 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