.isAuthenticated() Always False

The Code:

The Question:
Context: I want to take the code that makes passport work with pug from the FreeCodeCamp challenges, and make it work with React.

All of the code works, but on index.js, on line 51, the function .isAuthenticated() is always false. What am I doing wrong to make request.login(), or whatever, change it to true?

disclaimer: none of this code is optimized to run properly on glitch, i am only putting this code on glitch to demonstrate it for this post