So, I’m trying to take the program created with the course that demonstrates the passport local strategy, and replace the pug view with react.
I’ve figured out how to use react-router-dom to redirect to the profile page after signing up or logging in… however, this is as far as i’ve gotten. i’ve been stumped for weeks now on how to “ensure authentication” of the profile to successfully display the user’s profile page. how to sign up/login, then successfully run the “ensureAuthentication” function properly to display the user’s information in a separate link, specifically as the user’s individual profile page, if they login successfully, in React, as it does with the pug view engine in the fcc course?
this may be going off way deep into uncharted territory for what is taught in the fcc courses, but i hope somebody can help