Why is passport.authenticate ALWAYS failing on just the first try

My github callback route authenticate call ALWAYS fails the first time and I have no idea why. It is also the same for the steam strategy.

Here is my code GitHub - agracy2246/advanced_node_fcc .

I have to use failureRedirect: /auth/github to send it back again in order to login successfully. Can someone please take a look and tell me why?